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
field_view::get_string

Retrieves the underlying value as a string (unchecked access).

Synopsis
constexpr string_view
get_string() const;
Preconditions

this->is_string() == true (if violated, results in undefined behavior).

Exception safety

No-throw guarantee.

Object lifetimes

The returned view has the same lifetime rules as *this (it's valid as long as *this is valid).


PrevUpHomeNext