// Copyright (c) 2016-2023 Antony Polukhin // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BHO_PFR_DETAIL_STDTUPLE_HPP #define BHO_PFR_DETAIL_STDTUPLE_HPP #pragma once #include #include // metaprogramming stuff #include #include namespace bho { namespace pfr { namespace detail { template constexpr auto make_stdtuple_from_tietuple(const T& t, std::index_sequence) noexcept { return std::make_tuple( bho::pfr::detail::sequence_tuple::get(t)... ); } template constexpr auto make_stdtiedtuple_from_tietuple(const T& t, std::index_sequence) noexcept { return std::tie( bho::pfr::detail::sequence_tuple::get(t)... ); } template constexpr auto make_conststdtiedtuple_from_tietuple(const T& t, std::index_sequence) noexcept { return std::tuple< std::add_lvalue_reference_t(t))> >>... >( bho::pfr::detail::sequence_tuple::get(t)... ); } }}} // namespace bho::pfr::detail #endif // BHO_PFR_DETAIL_STDTUPLE_HPP