...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::front_move_insert_iterator
// In header: <boost/move/iterator.hpp> template<typename C> class front_move_insert_iterator : public std::iterator< std::output_iterator_tag, void, void, void, void > { public: // types typedef C container_type; typedef C::value_type value_type; typedef C::reference reference; // construct/copy/destruct explicit front_move_insert_iterator(C &); front_move_insert_iterator& operator=(reference); front_move_insert_iterator& operator=(BOOST_RV_REF(value_type)); // public member functions front_move_insert_iterator & operator*(); front_move_insert_iterator & operator++(); front_move_insert_iterator & operator++(int); };
A move insert iterator that move constructs elements int the front of a container
front_move_insert_iterator
public member functionsfront_move_insert_iterator & operator*();
front_move_insert_iterator & operator++();
front_move_insert_iterator & operator++(int);