mirror of
https://github.com/boostorg/range.git
synced 2025-07-20 08:02:12 +02:00
dos2unix on some files
[SVN r34025]
This commit is contained in:
@ -52,7 +52,9 @@ void check_iterator_pair()
|
|||||||
BOOST_STATIC_ASSERT(( is_same< range_value<const_pair_tt>::type,
|
BOOST_STATIC_ASSERT(( is_same< range_value<const_pair_tt>::type,
|
||||||
detail::iterator_traits<const_pair_t::first_type>::value_type>::value ));
|
detail::iterator_traits<const_pair_t::first_type>::value_type>::value ));
|
||||||
BOOST_STATIC_ASSERT(( is_same< range_iterator<const_pair_tt>::type, const_pair_tt::first_type >::value ));
|
BOOST_STATIC_ASSERT(( is_same< range_iterator<const_pair_tt>::type, const_pair_tt::first_type >::value ));
|
||||||
BOOST_STATIC_ASSERT(( is_same< range_const_iterator<const_pair_tt>::type, const_pair_tt::first_type >::value ));
|
//
|
||||||
|
// This behavior is not supported with v2.
|
||||||
|
//BOOST_STATIC_ASSERT(( is_same< range_const_iterator<const_pair_tt>::type, const_pair_tt::first_type >::value ));
|
||||||
BOOST_STATIC_ASSERT(( is_same< range_difference<const_pair_tt>::type,
|
BOOST_STATIC_ASSERT(( is_same< range_difference<const_pair_tt>::type,
|
||||||
detail::iterator_traits<const_pair_tt::first_type>::difference_type >::value ));
|
detail::iterator_traits<const_pair_tt::first_type>::difference_type >::value ));
|
||||||
BOOST_STATIC_ASSERT(( is_same< range_size<const_pair_tt>::type, std::size_t >::value ));
|
BOOST_STATIC_ASSERT(( is_same< range_size<const_pair_tt>::type, std::size_t >::value ));
|
||||||
|
@ -53,10 +53,10 @@ void check_iterator()
|
|||||||
BOOST_CHECK( std::distance( begin( p ), end( p ) ) == std::distance( rbegin( rp ), rend( rp ) ) );
|
BOOST_CHECK( std::distance( begin( p ), end( p ) ) == std::distance( rbegin( rp ), rend( rp ) ) );
|
||||||
|
|
||||||
|
|
||||||
BOOST_CHECK_EQUAL( &*begin( a ), &*( rend( a ) ) );
|
BOOST_CHECK_EQUAL( &*begin( a ), &*( rend( a ) - 1 ) );
|
||||||
BOOST_CHECK_EQUAL( &*( end( a ) ), &*rbegin( a ) );
|
BOOST_CHECK_EQUAL( &*( end( a ) - 1 ), &*rbegin( a ) );
|
||||||
BOOST_CHECK_EQUAL( &*begin( ca ), &*( rend( ca ) ) );
|
BOOST_CHECK_EQUAL( &*begin( ca ), &*( rend( ca ) - 1 ) );
|
||||||
BOOST_CHECK_EQUAL( &*( end( ca ) ), &*rbegin( ca ) );
|
BOOST_CHECK_EQUAL( &*( end( ca ) - 1 ), &*rbegin( ca ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -91,16 +91,20 @@ void check_sub_range()
|
|||||||
r.size();
|
r.size();
|
||||||
s.size();
|
s.size();
|
||||||
|
|
||||||
irange singular_irange;
|
//
|
||||||
BOOST_CHECK( singular_irange.empty() );
|
// As of range v2 not legal anymore.
|
||||||
BOOST_CHECK( singular_irange.size() == 0 );
|
//
|
||||||
|
//irange singular_irange;
|
||||||
srange singular_srange;
|
//BOOST_CHECK( singular_irange.empty() );
|
||||||
BOOST_CHECK( singular_srange.empty() );
|
//BOOST_CHECK( singular_irange.size() == 0 );
|
||||||
BOOST_CHECK( singular_srange.size() == 0 );
|
//
|
||||||
|
//srange singular_srange;
|
||||||
BOOST_CHECK( empty( singular_irange ) );
|
//BOOST_CHECK( singular_srange.empty() );
|
||||||
BOOST_CHECK( empty( singular_srange ) );
|
//BOOST_CHECK( singular_srange.size() == 0 );
|
||||||
|
//
|
||||||
|
//BOOST_CHECK( empty( singular_irange ) );
|
||||||
|
//BOOST_CHECK( empty( singular_srange ) );
|
||||||
|
//
|
||||||
|
|
||||||
srange rr = make_iterator_range( str );
|
srange rr = make_iterator_range( str );
|
||||||
BOOST_CHECK( rr.equal( r ) );
|
BOOST_CHECK( rr.equal( r ) );
|
||||||
|
Reference in New Issue
Block a user