]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/range/test/pointer_as_iterator.cpp
e0e28d065edcf0bcd5c916284eb505c0ad529ee6
3 // Copyright Neil Groves 2010. Use, modification and
4 // distribution is subject to the Boost Software License, Version
5 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
9 // For more information, see http://www.boost.org/libs/range/
11 #include <boost/range/iterator_range.hpp>
12 #include <boost/range/begin.hpp>
13 #include <boost/range/end.hpp>
14 #include <boost/array.hpp>
15 #include <boost/test/test_tools.hpp>
16 #include <boost/test/unit_test.hpp>
22 void test_pointer_as_iterator()
24 boost::array
<int,3> arr
;
25 boost::iterator_range
<const int*> r(arr
.begin(), arr
.end());
28 } // anonymous namespace
30 boost::unit_test::test_suite
*
31 init_unit_test_suite(int argc
, char* argv
[])
33 boost::unit_test::test_suite
* test
34 = BOOST_TEST_SUITE( "RangeTestSuite.pointer_as_iterator" );
36 test
->add(BOOST_TEST_CASE( &test_pointer_as_iterator
));