Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

runtime

(EXPERIMENTAL) Creates a constant_string_view from a runtime value.

Synopsis

Defined in header <boost/mysql/constant_string_view.hpp>

constexpr constant_string_view
runtime(
    string_view value);
Description

You can use this function to bypass the consteval check performed by constant_string_view constructor.

Don't use this function unless you know what you are doing. consteval checks exist for the sake of security. Make sure to only pass trusted values to the relevant API.

Exception safety

No-throw guarantee.

Object lifetimes

The returned value has the same lifetime semantics as the passed view.


PrevUpHomeNext