MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / get_impl

Method get_impl

extern/json/json.hpp:2591–2601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2589 std::is_convertible<typename object_t::key_type, typename T::key_type>::value and
2590 std::is_convertible<basic_json_t, typename T::mapped_type>::value, int>::type = 0>
2591 T get_impl(T*) const
2592 {
2593 if (is_object())
2594 {
2595 return T(m_value.object->begin(), m_value.object->end());
2596 }
2597 else
2598 {
2599 throw std::domain_error("type must be object, but is " + type_name());
2600 }
2601 }
2602
2603 /// get an object (explicit)
2604 object_t get_impl(object_t*) const

Callers

nothing calls this directly

Calls 4

beginMethod · 0.45
endMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected