1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef BOOST_HANA_FWD_TAKE_WHILE_HPP
- #define BOOST_HANA_FWD_TAKE_WHILE_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- namespace boost { namespace hana {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto take_while = [](auto&& xs, auto&& predicate) {
- return tag-dispatched;
- };
- #else
- template <typename S, typename = void>
- struct take_while_impl : take_while_impl<S, when<true>> { };
- struct take_while_t {
- template <typename Xs, typename Pred>
- constexpr auto operator()(Xs&& xs, Pred&& pred) const;
- };
- BOOST_HANA_INLINE_VARIABLE constexpr take_while_t take_while{};
- #endif
- }}
- #endif
|