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

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
string::operator std::string_view

Convert to a std::string_view referring to the string.

Synopsis
operator std::string_view() const;
Description

Returns a string view to the underlying character string. The size of the view does not include the null terminator. This overload is not defined when BOOST_NO_CXX17_HDR_STRING_VIEW is defined.

Complexity

Constant.


PrevUpHomeNext