MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / get_ptr

Function get_ptr

Source/Utils/json.hpp:19566–19570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19564 template<typename PointerType, typename std::enable_if<
19565 std::is_pointer<PointerType>::value, int>::type = 0>
19566 auto get_ptr() noexcept -> decltype(std::declval<basic_json_t&>().get_impl_ptr(std::declval<PointerType>()))
19567 {
19568 // delegate the call to get_impl_ptr<>()
19569 return get_impl_ptr(static_cast<PointerType>(nullptr));
19570 }
19571
19572 /*!
19573 @brief get a pointer value (implicit)

Callers

nothing calls this directly

Calls 1

get_impl_ptrFunction · 0.85

Tested by

no test coverage detected