// Copyright (c) 2023 Denis Mikhailov // // 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 BOOST_PFR_DETAIL_STDARRAY_HPP #define BOOST_PFR_DETAIL_STDARRAY_HPP #pragma once #include #include #if !defined(BOOST_PFR_INTERFACE_UNIT) #include #if BOOST_PFR_CORE_NAME_ENABLED # include #endif #include // metaprogramming stuff #endif namespace boost { namespace pfr { namespace detail { #if BOOST_PFR_CORE_NAME_ENABLED template constexpr auto make_stdarray_from_tietuple(const T& t, std::index_sequence) noexcept { return std::array{ boost::pfr::detail::sequence_tuple::get(t)... }; } #else template constexpr auto make_stdarray_from_tietuple(const T&, std::index_sequence) noexcept { return nullptr; } #endif }}} // namespace boost::pfr::detail #endif // BOOST_PFR_DETAIL_STDARRAY_HPP