summaryrefslogtreecommitdiff
path: root/boost/metaparse/v1/impl/iterate_impl_unchecked.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/metaparse/v1/impl/iterate_impl_unchecked.hpp')
-rw-r--r--boost/metaparse/v1/impl/iterate_impl_unchecked.hpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/boost/metaparse/v1/impl/iterate_impl_unchecked.hpp b/boost/metaparse/v1/impl/iterate_impl_unchecked.hpp
new file mode 100644
index 0000000000..535cd379d9
--- /dev/null
+++ b/boost/metaparse/v1/impl/iterate_impl_unchecked.hpp
@@ -0,0 +1,44 @@
+#ifndef BOOST_METAPARSE_V1_IMPL_ITERATE_IMPL_UNCHECKED_HPP
+#define BOOST_METAPARSE_V1_IMPL_ITERATE_IMPL_UNCHECKED_HPP
+
+// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#include <boost/metaparse/v1/impl/fwd/iterate_impl.hpp>
+#include <boost/metaparse/v1/get_result.hpp>
+#include <boost/metaparse/v1/get_remaining.hpp>
+#include <boost/metaparse/v1/get_position.hpp>
+
+#include <boost/mpl/push_back.hpp>
+
+namespace boost
+{
+ namespace metaparse
+ {
+ namespace v1
+ {
+ namespace impl
+ {
+ template <int N, class P, class Accum, class S, class Pos>
+ struct iterate_impl_unchecked :
+ iterate_impl<
+ N - 1,
+ P,
+ typename boost::mpl::push_back<
+ Accum,
+ typename get_result<typename P::template apply<S, Pos> >::type
+ >::type
+ >::template apply<
+ typename get_remaining<typename P::template apply<S, Pos> >::type,
+ typename get_position<typename P::template apply<S, Pos> >::type
+ >
+ {};
+ }
+ }
+ }
+}
+
+#endif
+