MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / is_object

Function is_object

lesson6-Segmentation/json.hpp:19051–19054  ·  view source on GitHub ↗

! @brief return whether value is an object This function returns true if and only if the JSON value is an object. @return `true` if type is object, `false` otherwise. @complexity Constant. @exceptionsafety No-throw guarantee: this member function never throws exceptions. @liveexample{The following code exemplifies `is_object()` for all JSON types.,is_object}

Source from the content-addressed store, hash-verified

19049 @since version 1.0.0
19050 */
19051 constexpr bool is_object() const noexcept
19052 {
19053 return m_type == value_t::object;
19054 }
19055
19056 /*!
19057 @brief return whether value is an array

Callers 15

is_structuredFunction · 0.85
get_impl_ptrFunction · 0.85
atFunction · 0.85
operator[]Function · 0.85
json.hppFile · 0.85
valueFunction · 0.85
eraseFunction · 0.85
findFunction · 0.85
countFunction · 0.85
containsFunction · 0.85
push_backFunction · 0.85
emplaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected