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

Function get_ptr

lesson6-Segmentation/json.hpp:19567–19571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

get_impl_ptrFunction · 0.85

Tested by

no test coverage detected