| Home | Libraries | People | FAQ | More

###### field::get_string (1 of 2 overloads)

Retrieves a reference to the underlying `std::string` value (unchecked access).

###### Synopsis

    const std::string&
    get_string() const noexcept;

###### Preconditions

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

###### Exception safety

No-throw guarantee.

###### Object lifetimes

The returned reference is valid as long as `*this` is alive and no function that invalidates references is called on `*this`.