Return a pointer to the underlying @ref object. If `this->kind() == kind::object`, returns a pointer to the underlying object. Otherwise, returns `nullptr`. @par Example The return value is used in both a boolean context and to assign a variable: @code if( auto p = jv.if_object() ) return *p; @endcode @par Compl
| 1439 | @{ |
| 1440 | */ |
| 1441 | object const* |
| 1442 | if_object() const noexcept |
| 1443 | { |
| 1444 | if(kind() == json::kind::object) |
| 1445 | return &obj_; |
| 1446 | return nullptr; |
| 1447 | } |
| 1448 | |
| 1449 | object* |
| 1450 | if_object() noexcept |
no test coverage detected