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?

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.alt.net
From "Bo Persson"<bop@gmb.dk>
Newsgroups comp.std.c++
Subject Should forward_list::erase_after really take an iterator parameter?
Date Tue, 19 Apr 2011 13:07:27 CST
Organization unknown
Lines 21
Sender std-cpp-request@vandevoorde.com
Approved stephen.clamage@oracle.com
Message-ID <913h67F8jdU1@mid.individual.net> (permalink)
To undisclosed-recipients:;
Return-Path <cppmods@mcgurn.dreamhost.com>
X-Original-Date Mon, 18 Apr 2011 21:19:39 +0200
X-Submission-Address std-c++-submit@vandevoorde.com
Xref x330-a1.tempe.blueboxinc.net comp.std.c++:113

Show key headers only | 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