![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/include/boost/hana/fwd/ |
Upload File : |
/*! @file Forward declares `boost::hana::basic_tuple`. @copyright Louis Dionne 2013-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_FWD_BASIC_TUPLE_HPP #define BOOST_HANA_FWD_BASIC_TUPLE_HPP #include <boost/hana/config.hpp> #include <boost/hana/fwd/core/make.hpp> BOOST_HANA_NAMESPACE_BEGIN //! @ingroup group-datatypes //! Stripped down version of `hana::tuple`. //! //! Whereas `hana::tuple` aims to provide an interface somewhat close to a //! `std::tuple`, `basic_tuple` provides the strict minimum required to //! implement a closure with maximum compile-time efficiency. //! //! @note //! When you use a container, remember not to make assumptions about its //! representation, unless the documentation gives you those guarantees. //! More details [in the tutorial](@ref tutorial-containers-types). //! //! //! Modeled concepts //! ---------------- //! `Sequence`, and all the concepts it refines template <typename ...Xs> struct basic_tuple; //! Tag representing `hana::basic_tuple`. //! @relates hana::basic_tuple struct basic_tuple_tag { }; #ifdef BOOST_HANA_DOXYGEN_INVOKED //! Function object for creating a `basic_tuple`. //! @relates hana::basic_tuple //! //! Given zero or more objects `xs...`, `make<basic_tuple_tag>` returns a //! new `basic_tuple` containing those objects. The elements are held by //! value inside the resulting tuple, and they are hence copied or moved //! in. This is analogous to `std::make_tuple` for creating `basic_tuple`s. //! //! //! Example //! ------- //! @include example/basic_tuple/make.cpp template <> constexpr auto make<basic_tuple_tag> = [](auto&& ...xs) { return basic_tuple<std::decay_t<decltype(xs)>...>{forwarded(xs)...}; }; #endif //! Alias to `make<basic_tuple_tag>`; provided for convenience. //! @relates hana::basic_tuple //! //! //! Example //! ------- //! @include example/basic_tuple/make.cpp constexpr auto make_basic_tuple = make<basic_tuple_tag>; BOOST_HANA_NAMESPACE_END #endif // !BOOST_HANA_FWD_BASIC_TUPLE_HPP