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

Click here to view the latest version of this page.

Class template back_move_insert_iterator



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

template<typename C> 
class back_move_insert_iterator {
  // 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 back_move_insert_iterator(C &);
  back_move_insert_iterator & operator=(reference);
  back_move_insert_iterator & operator=(value_type &&);

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


A move insert iterator that move constructs elements at the back of a container

back_move_insert_iterator public construct/copy/destruct

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

back_move_insert_iterator public member functions

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