|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59650 - in sandbox/statistics/detail/assign/boost/assign: . auto_size
From: erwann.rogard_at_[hidden]
Date: 2010-02-11 15:18:41
Author: e_r
Date: 2010-02-11 15:18:40 EST (Thu, 11 Feb 2010)
New Revision: 59650
URL: http://svn.boost.org/trac/boost/changeset/59650
Log:
m
Added:
sandbox/statistics/detail/assign/boost/assign/auto_size/ref_list_of.hpp
- copied unchanged from r59646, /sandbox/statistics/detail/assign/boost/assign/ref_list_of.hpp
Removed:
sandbox/statistics/detail/assign/boost/assign/ref_list_of.hpp
Deleted: sandbox/statistics/detail/assign/boost/assign/ref_list_of.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/ref_list_of.hpp 2010-02-11 15:18:40 EST (Thu, 11 Feb 2010)
+++ (empty file)
@@ -1,47 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////
-// assign::cref_list_of_rebind.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_REF_LIST_OF_REBIND_ER_2010_HPP
-#define BOOST_ASSIGN_REF_LIST_OF_REBIND_ER_2010_HPP
-#include <boost/assign/detail/ref_list_of_auto_size_copy_rebind.hpp>
-
-
-// Usage 1:
-// std::vector<T> vec = cref_list_of(a)(b)(c);
-// Usage 2:
-// boost::array<T,3> vec = cref_list_of(a)(b)(c);
-// Usage 2:
-// BOOST_AUTO(tmp,ref_list_of(a)(b)(c)); boost::fill(tmp,d);
-//
-// Note that this function supersedes and has the same side effect as
-// ref_list_of<int>(), which still exists only for backward-compatibility.
-//
-// Unlike ref_copy_list_of, it has rebind semantics so that Usage 3 binds d to
-// a, b, c. If in doubt, ref_copy_list_of is the safer option.
-
-namespace boost{
-namespace assign{
-
- template<typename T>
- typename detail::auto_size::rebind_first<const T>::type
- cref_list_of(const T& t){
- typedef typename detail::auto_size::rebind_first<const T>::type expr_;
- return expr_(t);
- }
-
- template<typename T>
- typename detail::auto_size::rebind_first<T>::type
- ref_list_of(T& t){
- typedef typename detail::auto_size::rebind_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