![]() |
Home | Libraries | People | FAQ | More |
template< class T> consteval constant_string_view( const T& value) noexcept;
Constructs a string_view
from the passed argument.
This function is consteval
:
it results in a compile-time error if the passed value is not known at
compile-time. You can bypass this check using the runtime
function. This check works
only for C++20 and above. No check is performed for lower C++ standard
versions.
This constructor is only considered if a string_view
can be constructed
from the passed value.
No-throw guarantee.
Ownership is not transferred to the constructed object. As with string_view
, the user is responsible
for keeping the original character buffer alive.