diff options
Diffstat (limited to 'src/boost/libs/metaparse/example/meta_hs/lazy.hpp')
-rw-r--r-- | src/boost/libs/metaparse/example/meta_hs/lazy.hpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/boost/libs/metaparse/example/meta_hs/lazy.hpp b/src/boost/libs/metaparse/example/meta_hs/lazy.hpp new file mode 100644 index 00000000..c3a3cf83 --- /dev/null +++ b/src/boost/libs/metaparse/example/meta_hs/lazy.hpp @@ -0,0 +1,24 @@ +#ifndef META_HS_LAZY_HPP +#define META_HS_LAZY_HPP + +// Copyright Abel Sinkovics (abel@sinkovics.hu) 2012. +// 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/mpl/apply_wrap.hpp> + +namespace lazy +{ + template <class V> + struct value + { + typedef V type; + }; + + template <class F, class Arg> + struct application : boost::mpl::apply_wrap1<typename F::type, Arg>::type {}; +} + +#endif + |