![]() |
Home | Libraries | People | FAQ | More |
Return a double
pointer
if this is a double, else return nullptr
double* if_double();
If this->kind() == kind::double_
,
returns a pointer to the underlying double. Otherwise, returns nullptr
.
The return value is used in both a boolean context and to assign a variable:
if ( auto p = jv.if_double() ) return *p;
Constant.
No-throw guarantee.