]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/fusion/test/algorithm/segmented_for_each.cpp
1 /*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
3 Copyright (c) 2011 Eric Niebler
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 ==============================================================================*/
8 #include <boost/detail/lightweight_test.hpp>
9 #include <boost/fusion/container/vector/vector.hpp>
10 #include <boost/fusion/algorithm/iteration/for_each.hpp>
11 #include <boost/fusion/container/generation/make_vector.hpp>
12 #include "../sequence/tree.hpp"
17 void operator()(T
const& v
) const
19 std::cout
<< "[ " << v
<< " ] ";
26 using namespace boost::fusion
;
31 make_vector(double(0),'B')
33 make_vector(1,2,long(3))
34 , make_tree(make_vector('a','b','c'))
35 , make_tree(make_vector(short('d'),'e','f'))
39 , make_tree(make_vector(float(1),'h','i'))
40 , make_tree(make_vector('j','k','l'))
47 return boost::report_errors();