summaryrefslogtreecommitdiff
path: root/boost/operators.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/operators.hpp')
-rw-r--r--boost/operators.hpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/boost/operators.hpp b/boost/operators.hpp
index 82c374ebb5..ab203304c7 100644
--- a/boost/operators.hpp
+++ b/boost/operators.hpp
@@ -82,8 +82,10 @@
#ifndef BOOST_OPERATORS_HPP
#define BOOST_OPERATORS_HPP
+#include <cstddef>
+#include <iterator>
+
#include <boost/config.hpp>
-#include <boost/iterator.hpp>
#include <boost/detail/workaround.hpp>
#if defined(__sgi) && !defined(__GNUC__)
@@ -891,13 +893,13 @@ template <class T,
class R = V const &>
struct input_iterator_helper
: input_iteratable<T, P
- , boost::iterator<std::input_iterator_tag, V, D, P, R
+ , std::iterator<std::input_iterator_tag, V, D, P, R
> > {};
template<class T>
struct output_iterator_helper
: output_iteratable<T
- , boost::iterator<std::output_iterator_tag, void, void, void, void
+ , std::iterator<std::output_iterator_tag, void, void, void, void
> >
{
T& operator*() { return static_cast<T&>(*this); }
@@ -911,7 +913,7 @@ template <class T,
class R = V&>
struct forward_iterator_helper
: forward_iteratable<T, P
- , boost::iterator<std::forward_iterator_tag, V, D, P, R
+ , std::iterator<std::forward_iterator_tag, V, D, P, R
> > {};
template <class T,
@@ -921,7 +923,7 @@ template <class T,
class R = V&>
struct bidirectional_iterator_helper
: bidirectional_iteratable<T, P
- , boost::iterator<std::bidirectional_iterator_tag, V, D, P, R
+ , std::iterator<std::bidirectional_iterator_tag, V, D, P, R
> > {};
template <class T,
@@ -931,7 +933,7 @@ template <class T,
class R = V&>
struct random_access_iterator_helper
: random_access_iteratable<T, P, D, R
- , boost::iterator<std::random_access_iterator_tag, V, D, P, R
+ , std::iterator<std::random_access_iterator_tag, V, D, P, R
> >
{
friend D requires_difference_operator(const T& x, const T& y) {