3 // Copyright Thorsten Ottosen 2003-2004. 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/static_assert.hpp>
12 #include <boost/type_traits.hpp>
13 #include <boost/concept_check.hpp>
14 #include <boost/config.hpp>
19 template< typename T
>
20 struct range_iterator
;
23 struct range_iterator
<Container
>
25 template< typename C
>
28 typedef BOOST_DEDUCED_TYPENAME
C::iterator type
;
33 struct range_iterator
<String
>
35 template< typename C
>
42 template< typename C
>
46 typedef BOOST_DEDUCED_TYPENAME range_iterator
<Container
>::BOOST_NESTED_TEMPLATE pts
<C
>::type type
;
54 iterator_of
< std::vector
<int> >::type i
= v
.begin();
55 boost::ignore_unused_variable_warning(i
);
58 #include <boost/test/included/unit_test.hpp>
60 using boost::unit_test::test_suite
;
62 test_suite
* init_unit_test_suite( int argc
, char* argv
[] )
64 test_suite
* test
= BOOST_TEST_SUITE( "Range Test Suite" );
66 test
->add( BOOST_TEST_CASE( &compat1
) );