MCPcopy Create free account
hub / github.com/boostorg/pfr / structure_to_tuple

Function structure_to_tuple

include/boost/pfr/core.hpp:143–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141/// \endcode
142template <class T>
143constexpr auto structure_to_tuple(const T& val) noexcept {
144 return detail::make_stdtuple_from_tietuple(
145 detail::tie_as_tuple(val),
146 detail::make_index_sequence< tuple_size_v<T> >()
147 );
148}
149
150
151/// \brief std::tie` like function that ties fields of a structure.

Callers 1

test_examplesFunction · 0.85

Calls 2

tie_as_tupleFunction · 0.50

Tested by 1

test_examplesFunction · 0.68