|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r70387 - sandbox/assign_v2/boost/assign/v2/put/pipe
From: erwann.rogard_at_[hidden]
Date: 2011-03-22 12:41:13
Author: e_r
Date: 2011-03-22 12:41:12 EDT (Tue, 22 Mar 2011)
New Revision: 70387
URL: http://svn.boost.org/trac/boost/changeset/70387
Log:
upd assign_v2
Added:
sandbox/assign_v2/boost/assign/v2/put/pipe/option_traits.hpp (contents, props changed)
Added: sandbox/assign_v2/boost/assign/v2/put/pipe/option_traits.hpp
==============================================================================
--- (empty file)
+++ sandbox/assign_v2/boost/assign/v2/put/pipe/option_traits.hpp 2011-03-22 12:41:12 EDT (Tue, 22 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_OPTION_TRAITS_ER_2010_HPP
+#define BOOST_ASSIGN_V2_PUT_PIPE_OPTION_TRAITS_ER_2010_HPP
+#include <boost/assign/v2/ref/aux_/list/as_modulo_list.hpp>
+#include <boost/assign/v2/ref/aux_/list/list.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 aux{
+
+ typedef ::boost::mpl::vector0<> empty_option_list_;
+
+ typedef ref::list_aux::size_type option_size_type;
+
+ template<typename OptionList>
+ struct option_traits
+ {
+ typedef ref::nth_result_of::list<use_default> meta_;
+ typedef typename ::boost::mpl::apply1<meta_, OptionList>::type cont_;
+ typedef typename ::boost::mpl::size<OptionList>::type size;
+
+ template<typename O>
+ struct next_option_list : ::boost::mpl::push_back<
+ OptionList,
+ O const&
+ >{};
+
+ };
+
+}// aux
+}// v2
+}// assign
+}// boost
+
+#endif // BOOST_ASSIGN_V2_PUT_PIPE_OPTION_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