MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / is_primitive

Function is_primitive

include/behaviortree_cpp/contrib/json.hpp:20603–20606  ·  view source on GitHub ↗

@brief return whether type is primitive @sa https://json.nlohmann.me/api/basic_json/is_primitive/

Source from the content-addressed store, hash-verified

20601 /// @brief return whether type is primitive
20602 /// @sa https://json.nlohmann.me/api/basic_json/is_primitive/
20603 constexpr bool is_primitive() const noexcept
20604 {
20605 return is_null() || is_string() || is_boolean() || is_number() || is_binary();
20606 }
20607
20608 /// @brief return whether type is structured
20609 /// @sa https://json.nlohmann.me/api/basic_json/is_structured/

Callers

nothing calls this directly

Calls 5

is_nullFunction · 0.85
is_stringFunction · 0.85
is_booleanFunction · 0.85
is_numberFunction · 0.85
is_binaryFunction · 0.85

Tested by

no test coverage detected