Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59900 - sandbox/statistics/detail/assign/boost/assign/auto_size
From: erwann.rogard_at_[hidden]
Date: 2010-02-25 08:35:00


Author: e_r
Date: 2010-02-25 08:35:00 EST (Thu, 25 Feb 2010)
New Revision: 59900
URL: http://svn.boost.org/trac/boost/changeset/59900

Log:
m
Added:
   sandbox/statistics/detail/assign/boost/assign/auto_size/ref_list_of.hpp
      - copied unchanged from r59878, /sandbox/statistics/detail/assign/boost/assign/auto_size/ref_copy_list_of.hpp
Removed:
   sandbox/statistics/detail/assign/boost/assign/auto_size/ref_copy_list_of.hpp

Deleted: sandbox/statistics/detail/assign/boost/assign/auto_size/ref_copy_list_of.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/ref_copy_list_of.hpp 2010-02-25 08:35:00 EST (Thu, 25 Feb 2010)
+++ (empty file)
@@ -1,44 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////
-// assign::ref_copy_list_of.hpp //
-// //
-// (C) Copyright 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_AUTO_SIZE_REF_COPY_LIST_OF_ER_2010_HPP
-#define BOOST_ASSIGN_AUTO_SIZE_REF_COPY_LIST_OF_ER_2010_HPP
-#include <boost/assign/auto_size/detail/auto_size.hpp>
-
-// Usage 1:
-// std::vector<T> elems = cref_copy_list_of(a)(b)(c);
-// Usage 2:
-// boost::array<T,3> elems = cref_copy_list_of(a)(b)(c);
-// Usage 3:
-// boost::fill( ref_list_of(a)(b)(c), 0);
-//
-// The infix 'copy' emphasizes that copy semantics are used, which is the
-// preferable choice in most situations, in constrast to ref_list_of() which
-// has rebind semantics.
-
-namespace boost{
-namespace assign{
-
- template<typename T>
- typename detail::auto_size::copy_first<const T>::type
- cref_copy_list_of(const T& t){
- typedef typename detail::auto_size::copy_first<const T>::type expr_;
- return expr_(t);
- }
-
- template<typename T>
- typename detail::auto_size::copy_first<T>::type
- ref_copy_list_of(T& t){
- typedef typename detail::auto_size::copy_first<T>::type expr_;
- return expr_(t);
- }
-
-}// assign
-}// boost
-
-#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