Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Class template front_move_insert_iterator

boost::front_move_insert_iterator

Synopsis

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

template<typename C> 
class front_move_insert_iterator {
public:
  // types
  typedef C                        container_type;   
  typedef C::value_type            value_type;       
  typedef C::reference             reference;        
  typedef C::pointer               pointer;          
  typedef C::difference_type       difference_type;  
  typedef std::output_iterator_tag iterator_category;

  // construct/copy/destruct
  explicit front_move_insert_iterator(C &);
  front_move_insert_iterator & operator=(reference);
  front_move_insert_iterator & operator=(value_type &&);

  // public member functions
  front_move_insert_iterator & operator *();
  front_move_insert_iterator & operator++();
  front_move_insert_iterator & operator++(int);
};

Description

A move insert iterator that move constructs elements int the front of a container

front_move_insert_iterator public construct/copy/destruct

  1. explicit front_move_insert_iterator(C & x);
  2. front_move_insert_iterator & operator=(reference x);
  3. front_move_insert_iterator & operator=(value_type && x);

front_move_insert_iterator public member functions

  1. front_move_insert_iterator & operator *();
  2. front_move_insert_iterator & operator++();
  3. front_move_insert_iterator & operator++(int);

PrevUpHomeNext