|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67977 - sandbox/statistics/support/libs/assign/v2/example/misc
From: erwann.rogard_at_[hidden]
Date: 2011-01-11 15:57:05
Author: e_r
Date: 2011-01-11 15:57:04 EST (Tue, 11 Jan 2011)
New Revision: 67977
URL: http://svn.boost.org/trac/boost/changeset/67977
Log:
upd libs/assign/v2
Added:
sandbox/statistics/support/libs/assign/v2/example/misc/sub_range.cpp (contents, props changed)
sandbox/statistics/support/libs/assign/v2/example/misc/sub_range.h (contents, props changed)
Added: sandbox/statistics/support/libs/assign/v2/example/misc/sub_range.cpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/support/libs/assign/v2/example/misc/sub_range.cpp 2011-01-11 15:57:04 EST (Tue, 11 Jan 2011)
@@ -0,0 +1,38 @@
+//////////////////////////////////////////////////////////////////////////////
+// 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) //
+//////////////////////////////////////////////////////////////////////////////
+#include <vector>
+#include <boost/assign/v2/put/deque.hpp>
+#include <boost/assign/v2/ref/array.hpp>
+#include <boost/assign/v2/misc/sub_range.hpp>
+#include <libs/assign/v2/example/include.h>
+#include <libs/assign/v2/example/misc/sub_range.h>
+
+namespace example_assign_v2{
+namespace xxx_misc{
+namespace xxx_sub_range{
+
+ void run(std::ostream& os)
+ {
+ os << "* sub_range" << std::endl;
+ //[sub_range1
+ std::vector<int> v(3, -1); v[2] = 1;
+ assert( as2::sub_range( v ) < as2::csv_deque( -1, 0, 1 ) );
+ //]
+ //[sub_range2
+ os << as2::sub_range(
+ as2::ref::csv_array( "x", "y", "z" )
+ ); //outputs xyz
+ //]
+ os << std::endl;
+ }
+
+}// xxx_sub_range
+}// xxx_misc
+}// example_assign_v2
Added: sandbox/statistics/support/libs/assign/v2/example/misc/sub_range.h
==============================================================================
--- (empty file)
+++ sandbox/statistics/support/libs/assign/v2/example/misc/sub_range.h 2011-01-11 15:57:04 EST (Tue, 11 Jan 2011)
@@ -0,0 +1,24 @@
+//////////////////////////////////////////////////////////////////////////////
+// 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_EXAMPLE_MISC_SUB_RANGE_ER_2010_H
+#define BOOST_ASSIGN_V2_EXAMPLE_MISC_SUB_RANGE_ER_2010_H
+#include <ostream>
+
+namespace example_assign_v2{
+namespace xxx_misc{
+namespace xxx_sub_range{
+
+ void run(std::ostream& os);
+
+}// xxx_sub_range
+}// xxx_misc
+}// example_assign_v2
+
+#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