...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Return an int64_t
pointer
if this is a signed integer, else return nullptr
std::int64_t* if_int64();
If this->kind() == kind::int64
,
returns a pointer to the underlying integer. Otherwise, returns nullptr
.
The return value is used in both a boolean context and to assign a variable:
if( auto p = jv.if_int64() ) return *p;
Constant.
No-throw guarantee.