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

Function from_json_tuple_impl

lesson6-Segmentation/json.hpp:3733–3736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3731
3732template<typename BasicJsonType, typename Tuple, std::size_t... Idx>
3733void from_json_tuple_impl(const BasicJsonType& j, Tuple& t, index_sequence<Idx...> /*unused*/)
3734{
3735 t = std::make_tuple(j.at(Idx).template get<typename std::tuple_element<Idx, Tuple>::type>()...);
3736}
3737
3738template<typename BasicJsonType, typename... Args>
3739void from_json(const BasicJsonType& j, std::tuple<Args...>& t)

Callers 1

from_jsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected