Topic: Changing the return type of the containers' member


Author: "'Vlad from Moscow' via ISO C++ Standard - Future Proposals" <std-proposals@isocpp.org>
Date: Fri, 1 Jun 2018 07:18:47 -0700 (PDT)
Raw View
------=_Part_10426_1578637902.1527862727844
Content-Type: multipart/alternative;
 boundary="----=_Part_10427_461024184.1527862727844"

------=_Part_10427_461024184.1527862727844
Content-Type: text/plain; charset="UTF-8"

I do not see a reason why the methods* resiz*e and* reserve* of standard
containers have the return type *void*. In my opinion it would be much
better if they would return a reference to themselves. Such a change will
not influence on the existed code base.

--
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/01f927fa-9176-44fa-b0a3-e17482f9996b%40isocpp.org.

------=_Part_10427_461024184.1527862727844
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I do not see a reason why the methods<b> resiz</b>e and<b>=
 reserve</b> of standard containers have the return type <b>void</b>. In my=
 opinion it would be much better if they would return a reference to themse=
lves. Such a change will not influence on the existed code base.</div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; 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 />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/01f927fa-9176-44fa-b0a3-e17482f9996b%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/01f927fa-9176-44fa-b0a3-e17482f9996b=
%40isocpp.org</a>.<br />

------=_Part_10427_461024184.1527862727844--

------=_Part_10426_1578637902.1527862727844--

.