12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- #ifndef BOOST_HANA_FWD_UNIQUE_HPP
- #define BOOST_HANA_FWD_UNIQUE_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- #include <boost/hana/detail/nested_by_fwd.hpp>
- namespace boost { namespace hana {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #if defined(BOOST_HANA_DOXYGEN_INVOKED)
- constexpr auto unique = [](auto&& xs[, auto&& predicate]) {
- return tag-dispatched;
- };
- #else
- template <typename S, typename = void>
- struct unique_impl : unique_impl<S, when<true>> { };
- struct unique_t : detail::nested_by<unique_t> {
- template <typename Xs>
- constexpr auto operator()(Xs&& xs) const;
- template <typename Xs, typename Predicate>
- constexpr auto operator()(Xs&& xs, Predicate&& predicate) const;
- };
- BOOST_HANA_INLINE_VARIABLE constexpr unique_t unique{};
- #endif
- }}
- #endif
|