]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/range/test/result_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 #define BOOST_ALLOW_DEPRECATED_HEADERS
12 #include <boost/range/result_iterator.hpp>
13 #include <boost/static_assert.hpp>
14 #include <boost/type_traits/is_same.hpp>
16 #include <boost/test/test_tools.hpp>
17 #include <boost/test/unit_test.hpp>
21 namespace boost_range_test
26 void test_result_iterator()
28 typedef std::vector
<int> cont
;
33 boost::range_result_iterator
<cont
>::type
39 boost::range_result_iterator
<const cont
>::type
42 #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
46 boost::range_result_iterator
<cont
&&>::type
51 } // anonymous namespace
52 } // namespace boost_range_test
54 boost::unit_test::test_suite
* init_unit_test_suite( int argc
, char* argv
[] )
56 boost::unit_test::test_suite
* test
=
57 BOOST_TEST_SUITE("Boost.Range range_result_iterator meta-function");
59 test
->add(BOOST_TEST_CASE(&boost_range_test::test_result_iterator
));