Topic: Using the reverse iterator of standard containers as
Author: Vlad from Moscow <vlad.moscow@mail.ru>
Date: Tue, 21 Jul 2015 05:44:31 -0700 (PDT)
Raw View
------=_Part_425_1711663047.1437482671220
Content-Type: multipart/alternative;
boundary="----=_Part_426_2136968092.1437482671220"
------=_Part_426_2136968092.1437482671220
Content-Type: text/plain; charset=UTF-8
The idea is to overload some member functions of standard containers as for
example insert and erase such a way that they could use the reverse
iterator.of the used container
For example one member function insert of std::vector is declared like
iterator insert(const_iterator position, const T& x);
Why not to introduce member function insert that would be declared like
reverse_iterator insert(const_reverse_iterator position, const T& x);
In my opinion it would be useful.
--
---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.
------=_Part_426_2136968092.1437482671220
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>The idea is to overload some member functions of stan=
dard containers as for example insert=C2=A0and erase such a way that they c=
ould=C2=A0use the reverse iterator.of the used container</div><div><br></di=
v><div>For example one member function insert of std::vector is declared li=
ke=C2=A0</div><div><br></div><div>iterator insert(const_iterator position, =
const T& x);</div><div><br></div><div>Why not to introduce member funct=
ion insert that would be declared like</div><div><br></div><div><div>revers=
e_iterator insert(const_reverse_iterator position, const T& x);</div><d=
iv><br></div><div>In my opinion it would be useful.</div></div><font face=
=3D"LMMono9-Regular" size=3D"1"><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><div><br></div><div><br></div><div><br></div><div><br></div><div><br></di=
v><font face=3D"LMMono9-Regular" size=3D"1"><div><br></div><p align=3D"left=
"><br></p></font><p align=3D"left"><br></p></font><p align=3D"left"><br></p=
><p align=3D"left"><br></p><p align=3D"left"><br></p></div>
<p></p>
-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />
------=_Part_426_2136968092.1437482671220--
------=_Part_425_1711663047.1437482671220--
.