|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64571 - sandbox/variadic_templates/boost/mpl
From: cppljevans_at_[hidden]
Date: 2010-08-03 11:14:03
Author: cppljevans
Date: 2010-08-03 11:14:03 EDT (Tue, 03 Aug 2010)
New Revision: 64571
URL: http://svn.boost.org/trac/boost/changeset/64571
Log:
used by transform_pack.hpp
Added:
sandbox/variadic_templates/boost/mpl/back_inserter_pack.hpp (contents, props changed)
Added: sandbox/variadic_templates/boost/mpl/back_inserter_pack.hpp
==============================================================================
--- (empty file)
+++ sandbox/variadic_templates/boost/mpl/back_inserter_pack.hpp 2010-08-03 11:14:03 EDT (Tue, 03 Aug 2010)
@@ -0,0 +1,46 @@
+
+#ifndef BOOST_MPL_BACK_INSERTER_PACK_HPP_INCLUDED
+#define BOOST_MPL_BACK_INSERTER_PACK_HPP_INCLUDED
+
+namespace boost {
+namespace mpl {
+
+ template
+ < typename NowPackage
+ >
+struct back_inserter_pack
+;
+ template
+ < template<typename...>class NowPackage
+ , typename... NowElements
+ >
+struct back_inserter_pack
+ < NowPackage<NowElements...>
+ >
+{
+ template
+ < typename InsertedPackage
+ >
+ struct apply
+ ;
+ template
+ < template<typename...>class InsertedPackage
+ , typename... InsertedElements
+ >
+ struct apply
+ < InsertedPackage<InsertedElements...>
+ >
+ {
+ typedef
+ NowPackage
+ < NowElements...
+ , InsertedElements...
+ >
+ type
+ ;
+ };
+};
+
+}}
+
+#endif // BOOST_MPL_BACK_INSERTER_PACK_HPP_INCLUDED
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk