123456789101112131415161718192021222324252627282930313233 |
- #ifndef BOOST_HANA_DETAIL_CREATE_HPP
- #define BOOST_HANA_DETAIL_CREATE_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/detail/decay.hpp>
- namespace boost { namespace hana { namespace detail {
-
-
-
- template <template <typename ...> class T>
- struct create {
- template <typename ...X>
- constexpr T<typename detail::decay<X>::type...>
- operator()(X&& ...x) const {
- return T<typename detail::decay<X>::type...>{
- static_cast<X&&>(x)...
- };
- }
- };
- } }}
- #endif
|