...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
(EXPERIMENTAL) A string view that should be known at compile-time.
Defined in header <boost/mysql/constant_string_view.hpp>
class constant_string_view
Name |
Description |
---|---|
constant_string_view [constructor] |
Consteval constructor. |
Retrieves the underlying string view. |
This type is used when a string function argument must always be known at
compile-time except in rare cases. See format_sql
format strings for an
example.
This type holds internally a string_view
, and follows the same
lifetime rules as string_view
.
We recommend to only use this type as a function argument, to provide compile-time
checks.