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

value::get_array

value::get_array

Return the underlying array, without checking.

Synopsis

array&
get_array() & noexcept; (1)

array&&
get_array() && noexcept; (2)

array const&
get_array() const& noexcept; (3)

Description

This is the fastest way to access the underlying representation when the kind is known in advance.

Preconditions

this->is_array()

Complexity

Constant.

Exception Safety

No-throw guarantee.