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

field::as_int64 (2 of 2 overloads)
PrevUpHomeNext

Retrieves a reference to the underlying std::int64_t value or throws an exception.

Synopsis
std::int64_t&
as_int64();
Exception safety

Strong guarantee. Throws on type mismatch.

Exceptions

Type

Thrown On

bad_field_access

If !this->is_int64()

Object lifetimes

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


PrevUpHomeNext