Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69739 - sandbox/assign_v2/boost/assign/v2/put/pipe
From: erwann.rogard_at_[hidden]
Date: 2011-03-08 22:18:03


Author: e_r
Date: 2011-03-08 22:18:03 EST (Tue, 08 Mar 2011)
New Revision: 69739
URL: http://svn.boost.org/trac/boost/changeset/69739

Log:
upd assign_v2
Added:
   sandbox/assign_v2/boost/assign/v2/put/pipe/modulo_traits.hpp (contents, props changed)

Added: sandbox/assign_v2/boost/assign/v2/put/pipe/modulo_traits.hpp
==============================================================================
--- (empty file)
+++ sandbox/assign_v2/boost/assign/v2/put/pipe/modulo_traits.hpp 2011-03-08 22:18:03 EST (Tue, 08 Mar 2011)
@@ -0,0 +1,49 @@
+//////////////////////////////////////////////////////////////////////////////
+// Boost.Assign v2 //
+// //
+// Copyright (C) 2003-2004 Thorsten Ottosen //
+// Copyright (C) 2010 Erwann Rogard //
+// Use, modification and distribution are subject to 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) //
+//////////////////////////////////////////////////////////////////////////////
+#ifndef BOOST_ASSIGN_V2_PUT_PIPE_MODULO_TRAITS_ER_2010_HPP
+#define BOOST_ASSIGN_V2_PUT_PIPE_MODULO_TRAITS_ER_2010_HPP
+#include <boost/assign/v2/ref/list/as_modulo_list.hpp>
+#include <boost/assign/v2/ref/list/nth_result_of.hpp>
+#include <boost/mpl/apply.hpp>
+#include <boost/mpl/push_back.hpp>
+#include <boost/mpl/size.hpp>
+#include <boost/mpl/vector/vector0.hpp>
+
+namespace boost{
+ struct use_default;
+namespace assign{
+namespace v2{
+namespace put_pipe_aux{
+
+ typedef ::boost::mpl::vector0<> empty_par_list_;
+
+ typedef ref::list_aux::size_type modulo_size_type;
+
+ template<typename ParList>
+ struct modulo_traits
+ {
+ typedef ref::nth_result_of::list<use_default> meta_;
+ typedef typename ::boost::mpl::apply1<meta_, ParList>::type cont_;
+ typedef typename ::boost::mpl::size<ParList>::type size;
+
+ template<typename P>
+ struct next_par_list : ::boost::mpl::push_back<
+ ParList,
+ P const&
+ >{};
+
+ };
+
+}// put_pipe_aux
+}// v2
+}// assign
+}// boost
+
+#endif // BOOST_ASSIGN_V2_PUT_PIPE_MODULO_TRAITS_ER_2010_HPP


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