mirror of
https://github.com/boostorg/iterator.git
synced 2025-10-26 05:51:43 +01:00
Updated lightweight_test.hpp includes to the new location.
This commit is contained in:
@@ -4,16 +4,16 @@
|
||||
|
||||
#include <boost/iterator/iterator_adaptor.hpp>
|
||||
#include <boost/pending/iterator_tests.hpp>
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
#include <cassert>
|
||||
|
||||
struct mutable_it : boost::iterator_adaptor<mutable_it,int*>
|
||||
{
|
||||
typedef boost::iterator_adaptor<mutable_it,int*> super_t;
|
||||
|
||||
|
||||
mutable_it();
|
||||
explicit mutable_it(int* p) : super_t(p) {}
|
||||
|
||||
|
||||
bool equal(mutable_it const& rhs) const
|
||||
{
|
||||
return this->base() == rhs.base();
|
||||
@@ -23,7 +23,7 @@ struct mutable_it : boost::iterator_adaptor<mutable_it,int*>
|
||||
struct constant_it : boost::iterator_adaptor<constant_it,int const*>
|
||||
{
|
||||
typedef boost::iterator_adaptor<constant_it,int const*> super_t;
|
||||
|
||||
|
||||
constant_it();
|
||||
explicit constant_it(int* p) : super_t(p) {}
|
||||
constant_it(mutable_it const& x) : super_t(x.base()) {}
|
||||
@@ -37,7 +37,7 @@ struct constant_it : boost::iterator_adaptor<constant_it,int const*>
|
||||
int main()
|
||||
{
|
||||
int data[] = { 49, 77 };
|
||||
|
||||
|
||||
mutable_it i(data);
|
||||
constant_it j(data + 1);
|
||||
BOOST_TEST(i < j);
|
||||
@@ -46,7 +46,7 @@ int main()
|
||||
BOOST_TEST(j >= i);
|
||||
BOOST_TEST(j - i == 1);
|
||||
BOOST_TEST(i - j == -1);
|
||||
|
||||
|
||||
constant_it k = i;
|
||||
|
||||
BOOST_TEST(!(i < k));
|
||||
@@ -55,6 +55,6 @@ int main()
|
||||
BOOST_TEST(k >= i);
|
||||
BOOST_TEST(k - i == 0);
|
||||
BOOST_TEST(i - k == 0);
|
||||
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user