]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/range/test/iterator.cpp
3 // Copyright Neil Groves 2014. 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)
8 // For more information, see http://www.boost.org/libs/range/
11 #include <boost/range/iterator.hpp>
12 #include <boost/static_assert.hpp>
13 #include <boost/type_traits/is_same.hpp>
15 #include <boost/test/test_tools.hpp>
16 #include <boost/test/unit_test.hpp>
20 namespace boost_range_test
27 typedef std::vector
<int> cont
;
32 boost::range_iterator
<cont
>::type
38 boost::range_iterator
<const cont
>::type
41 #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
45 boost::range_iterator
<cont
&&>::type
50 } // anonymous namespace
51 } // namespace boost_range_test
53 boost::unit_test::test_suite
* init_unit_test_suite( int argc
, char* argv
[] )
55 boost::unit_test::test_suite
* test
=
56 BOOST_TEST_SUITE("Boost.Range range_iterator meta-function");
58 test
->add(BOOST_TEST_CASE(&boost_range_test::test_iterator
));