|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r70427 - in sandbox/assign_v2/boost/assign/v2/ref: array wrapper
From: erwann.rogard_at_[hidden]
Date: 2011-03-22 17:12:38
Author: e_r
Date: 2011-03-22 17:12:37 EDT (Tue, 22 Mar 2011)
New Revision: 70427
URL: http://svn.boost.org/trac/boost/changeset/70427
Log:
upd assign_v2
Added:
sandbox/assign_v2/boost/assign/v2/ref/array/get.hpp
- copied unchanged from r70417, /sandbox/assign_v2/boost/assign/v2/ref/wrapper/range_get.hpp
Removed:
sandbox/assign_v2/boost/assign/v2/ref/wrapper/range_get.hpp
Deleted: sandbox/assign_v2/boost/assign/v2/ref/wrapper/range_get.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/wrapper/range_get.hpp 2011-03-22 17:12:37 EDT (Tue, 22 Mar 2011)
+++ (empty file)
@@ -1,129 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////
-// 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_WRAPPER_RANGE_GET_ER_2010_HPP
-#define BOOST_ASSIGN_V2_REF_WRAPPER_RANGE_GET_ER_2010_HPP
-#include <boost/assign/v2/detail/pp/ignore.hpp>
-#include <boost/config.hpp>
-#include <boost/range/reference.hpp>
-#include <boost/range/value_type.hpp>
-
-#ifdef BOOST_MSVC
-#include <boost/range/begin.hpp>
-#include <boost/range/end.hpp>
-#include <boost/range/iterator_range.hpp>
-#include <boost/iterator/transform_iterator.hpp>
-#else
-#include <boost/range/adaptor/transformed.hpp>
-#endif
-
-#include <boost/assign/v2/ref/wrapper/get.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-//[syntax_ref_wrapper_range_get
-namespace ref{
-namespace range_aux{
-namespace result_of{
-
- template<typename /*<<Range of reference-wrappers>>*/R>
- struct /*<<Metafunction>>*/range_get/*<-*/{
-
- typedef ref::get_functor f_;
- #ifdef BOOST_MSVC
- typedef boost::iterator_range<
- boost::transform_iterator< f_,
- BOOST_DEDUCED_TYPENAME boost::range_iterator<R>::type
- >
- > type;
- #else
- typedef boost::range_detail::transform_range<f_, R> type;
- #endif
- }/*->*/;
-
-}// result_of
-
- template<typename R>
- typename range_aux::result_of::range_get<R>::type
- /*<<Semantics: transforms `r` by invoking member function `get()`>>*/
- range_get(R& rw)/*<-*/
- {
- typedef typename range_aux::result_of::range_get<R>::type result_;
- #ifdef BOOST_MSVC
- return result_(
- boost::make_transform_iterator( boost::begin( rw ), get_functor() ),
- boost::make_transform_iterator( boost::end( rw ), get_functor() )
- );
- #else
- return result_( get_functor(), rw );
- #endif
- }BOOST_ASSIGN_V2_IGNORE(/*->*/;/*<-*/)/*->*/
-
- template<typename R>
- typename range_aux::result_of::range_get<R const>::type
- /*<<Semantics: transforms `r` by invoking member function `get()`>>*/
- range_get(R const& rw )/*<-*/
- {
- typedef typename range_aux::result_of::range_get<R const>::type result_;
- #ifdef BOOST_MSVC
- return result_(
- boost::make_transform_iterator( boost::begin( rw ), get_functor() ),
- boost::make_transform_iterator( boost::end( rw ), get_functor() )
- );
- #else
- return result_( get_functor(), rw );
- #endif
- }BOOST_ASSIGN_V2_IGNORE(/*->*/;/*<-*/)/*->*/
-
- struct get_adaptor/*<-*/{}/*->*/;
-
- template<typename R>
- typename range_aux::result_of::range_get<R>::type
- operator|(R& rw, get_adaptor)/*<-*/{
- return range_get( rw );
- }BOOST_ASSIGN_V2_IGNORE(/*->*/;/*<-*/)/*->*/
-
- template<typename R>
- typename range_aux::result_of::range_get<R const>::type
- operator|(R const& rw, get_adaptor)/*<-*/{
- return range_get( rw );
- }BOOST_ASSIGN_V2_IGNORE(/*->*/;/*<-*/)/*->*/
-
-}// range_aux
-namespace result_of{
-
- template<typename R>
- struct range_get/*<-*/ : boost::lazy_enable_if<
- boost::is_reference_wrapper<
- typename boost::range_value<
- typename boost::remove_cv<R>::type
- >::type
- >,
- range_aux::result_of::range_get<R>
- >{}/*->*/;
-
-}// result_of
-//<-
-namespace{
-//->
-
- range_aux::get_adaptor const _get/*<-*/
- = range_aux::get_adaptor()/*->*/;
-
-//<-
-}
-//->
-}// ref
-//]
-}// v2
-}// assign
-}// boost
-
-#endif // BOOST_ASSIGN_V2_REF_WRAPPER_RANGE_GET_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