123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #ifndef BOOST_HANA_FWD_INSERT_HPP
- #define BOOST_HANA_FWD_INSERT_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- namespace boost { namespace hana {
-
-
- template <typename T, typename = void>
- struct insert_impl : insert_impl<T, when<true>> { };
-
- struct insert_t {
- template <typename Set, typename ...Args>
- constexpr decltype(auto) operator()(Set&& set, Args&& ...args) const;
- };
- BOOST_HANA_INLINE_VARIABLE constexpr insert_t insert{};
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto insert = [](auto&& xs, auto&& n, auto&& element) {
- return tag-dispatched;
- };
- #endif
- }}
- #endif
|