Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69858 - sandbox/assign_v2/boost/assign/v2/detail/functor
From: erwann.rogard_at_[hidden]
Date: 2011-03-11 16:36:25


Author: e_r
Date: 2011-03-11 16:36:24 EST (Fri, 11 Mar 2011)
New Revision: 69858
URL: http://svn.boost.org/trac/boost/changeset/69858

Log:
upd assign_v2
Text files modified:
   sandbox/assign_v2/boost/assign/v2/detail/functor/identity.hpp | 94 ---------------------------------------
   sandbox/assign_v2/boost/assign/v2/detail/functor/post_increment.hpp | 45 ------------------
   2 files changed, 2 insertions(+), 137 deletions(-)

Modified: sandbox/assign_v2/boost/assign/v2/detail/functor/identity.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/functor/identity.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/functor/identity.hpp 2011-03-11 16:36:24 EST (Fri, 11 Mar 2011)
@@ -1,93 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// 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_DETAIL_FUNCTOR_IDENTITY_ER_2010_HPP
-#define BOOST_ASSIGN_V2_DETAIL_FUNCTOR_IDENTITY_ER_2010_HPP
-#include <boost/assign/v2/detail/config/enable_cpp0x.hpp>
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-#include <utility>
-//#include <boost/type_traits/is_reference.hpp>
-//#include <boost/utility/enable_if.hpp>
-#else
-#include <boost/mpl/equal_to.hpp>
-#include <boost/mpl/at.hpp>
-#include <boost/mpl/int.hpp>
-#include <boost/mpl/size.hpp>
-#include <boost/mpl/eval_if.hpp>
-#include <boost/type_traits/add_reference.hpp>
-#include <boost/assign/v2/detail/functor/crtp_unary_and_up.hpp>
-#endif
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace functor_aux{
-
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-//do nothing
-#else
- struct result_of_identity{
-
- template<typename V>
- struct is_ok : ::boost::mpl::equal_to<
- boost::mpl::int_<1>,
- boost::mpl::size<V>
- >{};
-
- template<typename V>
- struct enable
- {
- typedef typename ::boost::mpl::at_c<V, 0>::type t_;
- typedef typename boost::add_reference<t_>::type type;
- };
-
- template<typename V>
- struct disable{};
-
- template<typename V>
- struct apply : ::boost::mpl::eval_if<
- is_ok<V>,
- enable<V>,
- disable<V>
- >{};
-
- };
-
-#endif
-
- struct identity
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-// do nothing
-#else
- : functor_aux::crtp_unary_and_up<
- functor_aux::identity,
- functor_aux::result_of_identity
- >
-#endif
- {
- identity(){}
-
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
- template<typename T>
- T&& operator()(T&& t)const{ return std::forward<T>( t ); }
-#else
- template<typename T> T& impl(T& t)const{ return t; }
- template<typename T> T const& impl(T const& t)const{ return t; }
-#endif
- };
-
-}// functor_aux
-namespace{
- functor_aux::identity const _functor_identity = functor_aux::identity();
-}
-}// v2
-}// assigns
-}// boost
-
-#endif // BOOST_ASSIGN_V2_DETAIL_FUNCTOR_IDENTITY_ER_2010_HPP
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/boost/assign/v2/detail/functor/post_increment.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/detail/functor/post_increment.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/detail/functor/post_increment.hpp 2011-03-11 16:36:24 EST (Fri, 11 Mar 2011)
@@ -1,44 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// 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_DETAIL_FUNCTOR_POST_INCREMENT_ER_2010_HPP
-#define BOOST_ASSIGN_V2_DETAIL_FUNCTOR_POST_INCREMENT_ER_2010_HPP
-#include <cstddef>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace functor_aux{
-
- template<typename T = std::size_t>
- struct post_increment
- {
- typedef T result_type;
-
- post_increment():i_(0){}
- post_increment(T i):i_( i ){}
-
- result_type operator()(const T& i)const{ return this->i++; }
- result_type operator()()const{ return this->i_++; }
-
- protected:
-
- mutable result_type i_;
- };
-
-}// functor_aux
-namespace{
- functor_aux::post_increment<> const _post_increment
- = functor_aux::post_increment<>();
-}
-}// v2
-}// assign
-}// boost
-
-#endif // BOOST_ASSIGN_V2_DETAIL_FUNCTOR_POST_INCREMENT_ER_2010_HPP
+// TODO remove file
\ No newline at end of file


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