mirror of
https://github.com/boostorg/range.git
synced 2025-07-22 17:07:20 +02:00
*** empty log message ***
[SVN r24622]
This commit is contained in:
@ -35,7 +35,7 @@ namespace range_detail
|
|||||||
template< typename C >
|
template< typename C >
|
||||||
inline bool empty( const C& c )
|
inline bool empty( const C& c )
|
||||||
{
|
{
|
||||||
return begin( c ) == end( c );
|
return boost::begin( c ) == boost::end( c );
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
@ -37,7 +37,7 @@ namespace range_detail
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
template< typename C >
|
template< typename C >
|
||||||
inline BOOST_RANGE_DEDUCED_TYPENAME C::size_type
|
inline BOOST_DEDUCED_TYPENAME C::size_type
|
||||||
size( const C& c )
|
size( const C& c )
|
||||||
{
|
{
|
||||||
return c.size();
|
return c.size();
|
||||||
@ -83,7 +83,7 @@ namespace range_detail
|
|||||||
return range_detail::str_size( s );
|
return range_detail::str_size( s );
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace 'range'
|
} // namespace 'range_detail'
|
||||||
|
|
||||||
template< class T >
|
template< class T >
|
||||||
inline BOOST_DEDUCED_TYPENAME range_size<T>::type size( const T& r )
|
inline BOOST_DEDUCED_TYPENAME range_size<T>::type size( const T& r )
|
||||||
|
@ -57,11 +57,18 @@ void check_iterator_range()
|
|||||||
|
|
||||||
BOOST_CHECK( !r.empty() );
|
BOOST_CHECK( !r.empty() );
|
||||||
BOOST_CHECK( !r2.empty() );
|
BOOST_CHECK( !r2.empty() );
|
||||||
|
|
||||||
|
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
|
||||||
|
if( !(bool)r )
|
||||||
|
BOOST_CHECK( false );
|
||||||
|
if( !(bool)r2 )
|
||||||
|
BOOST_CHECK( false );
|
||||||
|
#else
|
||||||
if( !r )
|
if( !r )
|
||||||
BOOST_CHECK( false );
|
BOOST_CHECK( false );
|
||||||
if( !r2 )
|
if( !r2 )
|
||||||
BOOST_CHECK( false );
|
BOOST_CHECK( false );
|
||||||
|
#endif
|
||||||
|
|
||||||
BOOST_CHECK_EQUAL( r.size(), size( r ) );
|
BOOST_CHECK_EQUAL( r.size(), size( r ) );
|
||||||
BOOST_CHECK_EQUAL( r2.size(), size( r2 ) );
|
BOOST_CHECK_EQUAL( r2.size(), size( r2 ) );
|
||||||
|
Reference in New Issue
Block a user