插入迭代器是输出迭代器的适配器。
有3种:
template<class frontinsertionsequence>class front_insert_iterator
template<class sequence>class back_insert_iterator
template<class sequence>class inser_iterator
实现经常使用函数模板:
template<class frontinsertionsequence>
front_insert_iterator<frontinsertionsequence>front_inserter( frontinsertionsequence& s);
template<class sequence>
back_insert_iterator< sequence>back_inserter(sequence& s);
template<class sequence,class Iterator>
inser_iterator< sequence>inserter( sequence& s,Iterator i);
以上就是我对于顺序容器的插入迭代器的认识。