Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template any_iterator

boost::any_iterator

Synopsis

// In header: <boost/iterator/any_iterator.hpp>

template<typename Value, typename CategoryOrTraversal, 
         typename Reference = Value&, typename Difference = std::ptrdiff_t> 
class any_iterator {
public:
  // types
  typedef boost::iterator_category_to_traversal< CategoryOrTraversal >::type Traversal;

  // member classes/structs/unions

  struct disabler {
  };

  struct enabler {
  };

  // construct/copy/destruct
  any_iterator();
  any_iterator(any_iterator const &);
  template<typename WrappedIterator> 
    any_iterator(WrappedIterator const &, unspecified = disabler());
  any_iterator& operator=(any_iterator const &);
  template<typename WrappedIterator> 
    any_iterator& operator=(WrappedIterator const &);
  ~any_iterator();

  // public member functions
  operator const_type_with_const_value_type() const;
  operator const_type_with_non_const_value_type() const;
  template<typename TargetTraversal> 
    operator any_iterator< Value, TargetTraversal, Reference, Difference >() const;

  // private member functions
  Reference dereference() const;
  bool equal(any_iterator const &) const;
  void increment() ;
  void decrement() ;
  void advance(Difference) ;
  Difference distance_to(any_iterator const &) const;
  any_iterator & swap(any_iterator &) ;
  unspecified make_traversal_converted_version(boost::incrementable_traversal_tag *) const;
  unspecified make_traversal_converted_version(boost::single_pass_traversal_tag *) const;
  unspecified make_traversal_converted_version(boost::forward_traversal_tag *) const;
  unspecified make_traversal_converted_version(boost::bidirectional_traversal_tag *) const;
};

Description

any_iterator public construct/copy/destruct

  1. any_iterator();
  2. any_iterator(any_iterator const & rhs);
  3. template<typename WrappedIterator> 
      any_iterator(WrappedIterator const & wrapped_iterator, 
                   unspecified = disabler());
  4. any_iterator& operator=(any_iterator const & rhs);
  5. template<typename WrappedIterator> 
      any_iterator& operator=(WrappedIterator const & wrapped_iterator);
  6. ~any_iterator();

any_iterator public member functions

  1. operator const_type_with_const_value_type() const;
  2. operator const_type_with_non_const_value_type() const;
  3. template<typename TargetTraversal> 
      operator any_iterator< Value, TargetTraversal, Reference, Difference >() const;

any_iterator private member functions

  1. Reference dereference() const;
  2. bool equal(any_iterator const & rhs) const;
  3. void increment() ;
  4. void decrement() ;
  5. void advance(Difference n) ;
  6. Difference distance_to(any_iterator const & other) const;
  7. any_iterator & swap(any_iterator & other) ;
  8. unspecified make_traversal_converted_version(boost::incrementable_traversal_tag * funcSelector) const;
  9. unspecified make_traversal_converted_version(boost::single_pass_traversal_tag * funcSelector) const;
  10. unspecified make_traversal_converted_version(boost::forward_traversal_tag * funcSelector) const;
  11. unspecified make_traversal_converted_version(boost::bidirectional_traversal_tag * funcSelector) const;

PrevUpHomeNext