|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r66542 - sandbox/statistics/support/boost/assign/v2/ref/anon/unary
From: erwann.rogard_at_[hidden]
Date: 2010-11-12 11:45:43
Author: e_r
Date: 2010-11-12 11:45:36 EST (Fri, 12 Nov 2010)
New Revision: 66542
URL: http://svn.boost.org/trac/boost/changeset/66542
Log:
adding boost/assign/v2/ref/anon/unary
Added:
sandbox/statistics/support/boost/assign/v2/ref/anon/unary/
sandbox/statistics/support/boost/assign/v2/ref/anon/unary/assign_copy.hpp (contents, props changed)
sandbox/statistics/support/boost/assign/v2/ref/anon/unary/assign_rebind.hpp (contents, props changed)
sandbox/statistics/support/boost/assign/v2/ref/anon/unary/assign_xxx.hpp (contents, props changed)
sandbox/statistics/support/boost/assign/v2/ref/anon/unary/make.hpp (contents, props changed)
sandbox/statistics/support/boost/assign/v2/ref/anon/unary/nth_result_of.hpp (contents, props changed)
sandbox/statistics/support/boost/assign/v2/ref/anon/unary/tag2.hpp (contents, props changed)
sandbox/statistics/support/boost/assign/v2/ref/anon/unary/unary.hpp (contents, props changed)
Added: sandbox/statistics/support/boost/assign/v2/ref/anon/unary/assign_copy.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/unary/assign_copy.hpp 2010-11-12 11:45:36 EST (Fri, 12 Nov 2010)
@@ -0,0 +1,17 @@
+//////////////////////////////////////////////////////////////////////////////
+// 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_REF_ANON_UNARY_ASSIGN_COPY_ER_2010_HPP
+#define BOOST_ASSIGN_V2_REF_ANON_UNARY_ASSIGN_COPY_ER_2010_HPP
+#include <boost/assign/v2/ref/wrapper/copy.hpp>
+#include <boost/assign/v2/ref/anon/unary/assign_xxx.hpp>
+
+BOOST_ASSIGN_V2_REF_ANON_UNARY_XXX( assign_copy, assign_tag::copy )
+
+#endif
Added: sandbox/statistics/support/boost/assign/v2/ref/anon/unary/assign_rebind.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/unary/assign_rebind.hpp 2010-11-12 11:45:36 EST (Fri, 12 Nov 2010)
@@ -0,0 +1,17 @@
+//////////////////////////////////////////////////////////////////////////////
+// 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_REF_ANON_UNARY_ASSIGN_REBIND_ER_2010_HPP
+#define BOOST_ASSIGN_V2_REF_ANON_UNARY_ASSIGN_REBIND_ER_2010_HPP
+#include <boost/assign/v2/ref/wrapper/rebind.hpp>
+#include <boost/assign/v2/ref/anon/unary/assign_xxx.hpp>
+
+BOOST_ASSIGN_V2_REF_ANON_UNARY_XXX( assign_rebind, assign_tag::rebind )
+
+#endif
Added: sandbox/statistics/support/boost/assign/v2/ref/anon/unary/assign_xxx.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/unary/assign_xxx.hpp 2010-11-12 11:45:36 EST (Fri, 12 Nov 2010)
@@ -0,0 +1,64 @@
+//////////////////////////////////////////////////////////////////////////////
+// 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_REF_ANON_UNARY_XXX
+#include <boost/assign/v2/detail/keyword/nil.hpp>
+#include <boost/assign/v2/ref/anon/unary/make.hpp>
+#define BOOST_ASSIGN_V2_REF_ANON_UNARY_XXX(NS, Tag1) \
+ \
+namespace boost{ \
+namespace assign{ \
+namespace v2{ \
+namespace ref{ \
+namespace NS{ \
+namespace nth_result_of{ \
+ template<std::size_t N,typename T> \
+ struct anon : ref::nth_result_of::anon<N,Tag1,T>{}; \
+}\
+namespace result_of{ \
+ \
+ template<typename T> \
+ struct anon_nil : ref::result_of::anon_nil< \
+ Tag1, T \
+ >{}; \
+ \
+ template<typename T> \
+ struct anon : ref::result_of::anon< \
+ Tag1, T \
+ >{}; \
+ \
+} \
+ template<typename T> \
+ typename NS::result_of::anon_nil<T>::type \
+ anon( keyword_aux::nil const& ) \
+ { \
+ return ref::anon<Tag1,T>( v2::_nil ); \
+ } \
+ template<typename T> \
+ typename NS::result_of::anon<T>::type \
+ anon(T& t) \
+ { \
+ return ref::anon<Tag1>( t ); \
+ } \
+ template<typename T> \
+ typename NS::result_of::anon<T const>::type \
+ anon(T const& t) \
+ { \
+ return ref::anon<Tag1>( t ); \
+ } \
+\
+} \
+} \
+} \
+} \
+} \
+/**/
+
+#endif
Added: sandbox/statistics/support/boost/assign/v2/ref/anon/unary/make.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/unary/make.hpp 2010-11-12 11:45:36 EST (Fri, 12 Nov 2010)
@@ -0,0 +1,61 @@
+//////////////////////////////////////////////////////////////////////////////
+// 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_REF_ANON_UNARY_MAKE_ER_2010_HPP
+#define BOOST_ASSIGN_V2_REF_ANON_UNARY_MAKE_ER_2010_HPP
+#include <boost/assign/v2/ref/fusion/make.hpp>
+#include <boost/assign/v2/ref/static_array/alloc/lazy_alloc.hpp>
+#include <boost/assign/v2/ref/fusion/assign_array.hpp>
+#include <boost/assign/v2/ref/anon/unary/nth_result_of.hpp>
+#include <boost/assign/v2/ref/anon/unary/tag2.hpp>
+
+namespace boost{
+namespace assign{
+namespace v2{
+namespace ref{
+namespace result_of{
+
+ template<typename Tag1,typename T>
+ struct anon_nil
+ : nth_result_of::anon<0, Tag1, T>{};
+
+ template<typename Tag1, typename T>
+ struct anon
+ : nth_result_of::anon<1, Tag1, T>{};
+
+}// result_of
+
+ template<typename Tag1, typename T>
+ typename result_of::anon_nil<Tag1, T>::type
+ anon( keyword_aux::nil const& )
+ {
+ typedef anon_aux::unary_tag2_ tag2_;
+ return ref::fusion<Tag1, tag2_,T>( v2::_nil );
+ }
+
+ template<typename Tag1,typename T>
+ typename result_of::anon<Tag1, T>::type
+ anon(T& t)
+ {
+ return anon<Tag1, T>( v2::_nil )( t );
+ }
+
+ template<typename Tag1,typename T>
+ typename result_of::anon<Tag1, T const>::type
+ anon(T const & t)
+ {
+ return anon<Tag1, T const>( v2::_nil )( t );
+ }
+
+}// ref
+}// v2
+}// assign
+}// boost
+
+#endif
Added: sandbox/statistics/support/boost/assign/v2/ref/anon/unary/nth_result_of.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/unary/nth_result_of.hpp 2010-11-12 11:45:36 EST (Fri, 12 Nov 2010)
@@ -0,0 +1,55 @@
+//////////////////////////////////////////////////////////////////////////////
+// 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_REF_ANON_UNARY_NTH_RESULT_OF2_ER_2010_HPP
+#define BOOST_ASSIGN_V2_REF_ANON_UNARY_NTH_RESULT_OF2_ER_2010_HPP
+#include <boost/assign/v2/ref/anon/unary/tag2.hpp>
+#include <boost/assign/v2/ref/fusion/nth_result_of.hpp>
+
+namespace boost{
+namespace assign{
+namespace v2{
+namespace ref{
+namespace anon_aux{
+
+ template<typename Tag1, typename T>
+ struct empty_anon : fusion_aux::empty<
+ Tag1,
+ anon_aux::unary_tag2_,
+ T
+ >{};
+
+ template<std::size_t N,typename Tag1,typename T>
+ struct recursive_result
+ {
+ typedef typename recursive_result<
+ N-1, Tag1, T
+ >::type previous_;
+ typedef typename previous_::template result<T>::type type;
+ };
+
+ template<typename Tag1, typename T>
+ struct recursive_result<0, Tag1, T>
+ : empty_anon<Tag1, T>{};
+
+}// anon_aux
+namespace nth_result_of{
+
+ template<std::size_t N,typename Tag1, typename T>
+ struct anon
+ : anon_aux::recursive_result<N, Tag1, T>
+ {};
+
+}// nth_result_of
+}// ref
+}// v2
+}// assign
+}// boost
+
+#endif
Added: sandbox/statistics/support/boost/assign/v2/ref/anon/unary/tag2.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/unary/tag2.hpp 2010-11-12 11:45:36 EST (Fri, 12 Nov 2010)
@@ -0,0 +1,26 @@
+//////////////////////////////////////////////////////////////////////////////
+// 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_REF_ANON_UNARY_TAG2_ER_2010_HPP
+#define BOOST_ASSIGN_V2_REF_ANON_UNARY_TAG2_ER_2010_HPP
+#include <boost/assign/v2/ref/static_array/alloc/lazy_alloc_fwd.hpp>
+
+namespace boost{
+namespace assign{
+namespace v2{
+namespace ref{
+namespace anon_aux{
+ typedef ref::alloc_tag::lazy_alloc unary_tag2_;
+}// anon_aux
+}// ref
+}// v2
+}// assign
+}// boost
+
+#endif
Added: sandbox/statistics/support/boost/assign/v2/ref/anon/unary/unary.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/support/boost/assign/v2/ref/anon/unary/unary.hpp 2010-11-12 11:45:36 EST (Fri, 12 Nov 2010)
@@ -0,0 +1,19 @@
+//////////////////////////////////////////////////////////////////////////////
+// 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_REF_ANON_UNARY_UNARY_ER_2010_HPP
+#define BOOST_ASSIGN_V2_REF_ANON_UNARY_UNARY_ER_2010_HPP
+
+#include <boost/assign/v2/ref/anon/unary/assign_copy.hpp>
+#include <boost/assign/v2/ref/anon/unary/assign_rebind.hpp>
+#include <boost/assign/v2/ref/anon/unary/make.hpp>
+#include <boost/assign/v2/ref/anon/unary/nth_result_of.hpp>
+#include <boost/assign/v2/ref/anon/unary/tag2.hpp>
+
+#endif
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