| 141 | /// \endcode |
| 142 | template <class T> |
| 143 | constexpr 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. |