*** empty log message ***

[SVN r24140]
This commit is contained in:
Thorsten Jørgen Ottosen
2004-07-28 11:01:10 +00:00
parent e26056b475
commit 5a479378d6
5 changed files with 10 additions and 11 deletions

View File

@ -23,7 +23,7 @@ namespace boost
template< class Range >
class sub_range : public iterator_range< BOOST_DEDUCED_TYPENAME result_iterator_of<Range>::type >
{
typedef BOOST_DEDUCED_TYPENAME result_iterator_of<Range>::type iterator_t;
typedef iterator_range< iterator_t > base;
@ -65,8 +65,7 @@ namespace boost
size_type size() const
{
return base::size();
}
}
};

View File

@ -51,8 +51,8 @@ int main()
{
const int N = 5;
std::vector<int> my_vector;
int values[] = { 1,2,3,4,5,6,7,8,9 };
my_vector.assign( values, values + 9 );
int values[] = { 1,2,3,4,5,6,7,8,9 };
my_vector.assign( values, values + 9 );
typedef std::vector<int>::iterator iterator;
std::pair<iterator,iterator> my_view( boost::begin( my_vector ),
boost::begin( my_vector ) + N );

View File

@ -34,7 +34,7 @@ struct add_one
void check_iterator_range()
{
typedef string::iterator iterator;
typedef string::const_iterator const_iterator;
typedef iterator_range<iterator> irange;

View File

@ -83,7 +83,7 @@ void check_char()
BOOST_CHECK_EQUAL( begin( my_string ), my_string );
const char* end2 = begin( my_string ) + size( my_string );
const char* end3 = end( my_string );
const char* end3 = end( my_string );
BOOST_CHECK_EQUAL( end3, end2 );
BOOST_CHECK_EQUAL( empty( my_string ), (my_string == 0 || my_string[0] == char()) );
BOOST_CHECK_EQUAL( size( my_string ), my_string_length );
@ -93,7 +93,7 @@ void check_char()
char to_search = 'n';
BOOST_CHECK( find( char_s, to_search ) != end( char_s ) );
BOOST_CHECK( find( my_string, to_search ) != end( my_string ) );
}

View File

@ -34,8 +34,8 @@ struct add_one
void check_iterator_range()
{
typedef string::iterator iterator;
typedef string::const_iterator const_iterator;
typedef iterator_range<iterator> irange;
@ -79,7 +79,7 @@ void check_iterator_range()
string res = copy_range<string>( r );
BOOST_CHECK( equal( res.begin(), res.end(), r.begin() ) );
}