Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.std.c++ > #113

Should forward_list::erase_after really take an iterator parameter?

From "Bo Persson"<bop@gmb.dk>
Newsgroups comp.std.c++
Subject Should forward_list::erase_after really take an iterator parameter?
Date 2011-04-19 13:07 -0600
Organization unknown
Message-ID <913h67F8jdU1@mid.individual.net> (permalink)

Show all headers | View raw


In the latest document (N3290)  erase_after has this signature:

iterator erase_after(const_iterator position, iterator last);


Is that by design, or should the second parameter be a const_iterator
as well? The latter looks more consistent.



Bo Persson



-- 
[ comp.std.c++ is moderated.  To submit articles, try posting with your ]
[ newsreader.  If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]

Back to comp.std.c++ | Previous | NextNext in thread | Find similar


Thread

Should forward_list::erase_after really take an iterator parameter? "Bo Persson"<bop@gmb.dk> - 2011-04-19 13:07 -0600
  Re: Should forward_list::erase_after really take an iterator parameter? Daniel Krügler<daniel.kruegler@googlemail.com> - 2011-04-20 14:05 -0600

csiph-web