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 an older version of Boost and was released in 2022. The current version is 1.90.0.
Return an array
pointer if this is an array, else return nullptr
array const* if_array() const;
If this->kind() == kind::array,
returns a pointer to the underlying array. Otherwise, returns nullptr.
The return value is used in both a boolean context and to assign a variable:
if( auto p = jv.if_array() ) return *p;
Constant.
No-throw guarantee.