12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef BOOST_HANA_FWD_REPEAT_HPP
- #define BOOST_HANA_FWD_REPEAT_HPP
- #include <boost/hana/config.hpp>
- #include <boost/hana/core/when.hpp>
- namespace boost { namespace hana {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifdef BOOST_HANA_DOXYGEN_INVOKED
- constexpr auto repeat = [](auto const& n, auto&& f) -> void {
- f(); f(); ... f();
- };
- #else
- template <typename N, typename = void>
- struct repeat_impl : repeat_impl<N, when<true>> { };
- struct repeat_t {
- template <typename N, typename F>
- constexpr void operator()(N const& n, F&& f) const;
- };
- BOOST_HANA_INLINE_VARIABLE constexpr repeat_t repeat{};
- #endif
- }}
- #endif
|