Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60167 - sandbox/statistics/detail/assign/boost/assign/auto_size/array
From: erwann.rogard_at_[hidden]
Date: 2010-03-04 22:42:28


Author: e_r
Date: 2010-03-04 22:42:28 EST (Thu, 04 Mar 2010)
New Revision: 60167
URL: http://svn.boost.org/trac/boost/changeset/60167

Log:
m
Added:
   sandbox/statistics/detail/assign/boost/assign/auto_size/array/static.hpp
      - copied unchanged from r60165, /sandbox/statistics/detail/assign/boost/assign/auto_size/array/wrapper.hpp
Removed:
   sandbox/statistics/detail/assign/boost/assign/auto_size/array/wrapper.hpp

Deleted: sandbox/statistics/detail/assign/boost/assign/auto_size/array/wrapper.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/array/wrapper.hpp 2010-03-04 22:42:28 EST (Thu, 04 Mar 2010)
+++ (empty file)
@@ -1,81 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////
-// assign::detail::array::wrapper.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_DETAIL_ARRAY_WRAPPER_ER_2010_HPP
-#define BOOST_ASSIGN_AUTO_SIZE_DETAIL_ARRAY_WRAPPER_ER_2010_HPP
-#include <boost/assign/auto_size/array/interface.hpp>
-#include <boost/assign/auto_size/array/ref.hpp>
-#include <boost/assign/auto_size/detail/expr.hpp> // needed for write_to_array
-
-namespace boost{
-namespace assign{
-namespace detail{
-namespace auto_size{
-
- namespace tag{
- struct static_array{};
- }
-
- // tag::static_array designates a data-structure that has the functonality
- // of array_interface<> and is allocated at construction. It is therefore
- // suitable as the result of functions that have the csv form :
- // fun(a,b,c)
- // Unlike lazy_array, it is not a suitable policy for auto_size::expr<>.
- // This is desirable as otherwise the result from fun(a,b,c) would be
- // costlier to compute (this has already been tested).
-
- template<typename T,int N,template<typename> class Ref>
- class static_array;
-
- template<>
- struct policy<tag::static_array>
- {
- template<typename T,int N,template<typename> class Ref>
- struct apply{
- typedef static_array<T,N,Ref> type;
- };
- };
-
-
- template<typename T,int N,template<typename> class Ref>
- class static_array
- : public array_interface<T,N,Ref,static_array<T,N,Ref> >
- {
-
- typedef typename auto_size::ref_array<T,N,Ref>::type ref_array_;
-
- public:
-
- static_array(){}
-
- template<typename E>
- static_array(const E& coll){
- write_to_array(this->ref_array,coll);
- }
-
- ref_array_& ref_array_impl(){
- return this->ref_array;
- }
-
- const ref_array_& ref_array_impl()const{
- return this->ref_array;
- }
-
- private:
- mutable ref_array_ ref_array;
-
- };
-
-
-}// auto_size
-}// detail
-}// 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