MCPcopy Create free account
hub / github.com/boostorg/json / is_structured

Method is_structured

include/boost/json/value.hpp:1330–1337  ·  view source on GitHub ↗

Checks if this is an @ref array or an @ref object. This function returns `true` if @ref kind() is either `kind::object` or `kind::array`. @par Complexity Constant. @par Exception Safety No-throw guarantee. */

Source from the content-addressed store, hash-verified

1328 No-throw guarantee.
1329 */
1330 bool
1331 is_structured() const noexcept
1332 {
1333 // VFALCO Could use bit 0x20 for this
1334 return
1335 kind() == json::kind::object ||
1336 kind() == json::kind::array;
1337 }
1338
1339 /** Check if this is not an @ref array or @ref object.
1340

Callers 1

testObserversMethod · 0.80

Calls 1

kindEnum · 0.85

Tested by

no test coverage detected