Topic: overload std::min_element and std::max_element with


Author: omagaldadze@gmail.com
Date: Wed, 20 Mar 2019 12:33:11 -0700 (PDT)
Raw View
------=_Part_2923_1150464339.1553110391911
Content-Type: multipart/alternative;
 boundary="----=_Part_2924_506472859.1553110391911"

------=_Part_2924_506472859.1553110391911
Content-Type: text/plain; charset="UTF-8"

Greetings!


Why not overload std::min_element and std::max_element to accept only one
argument, which is an appropriate container type, instead of sending
starting and ending forward iterators? Would it take much overhead in the
library?

Not that it's a big deal to type two arguments each time, but still.




Regards,

Oto

--
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/8e524cb0-3085-4d58-a47f-9e18b5c3e5dd%40isocpp.org.

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

<div dir=3D"ltr"><div>Greetings!</div><div><br></div><div><br></div>Why not=
 overload std::min_element and std::max_element to accept only one argument=
, which is an appropriate container type, instead of sending starting and e=
nding forward iterators? Would it take much overhead in the library?<div><b=
r></div><div>Not that it&#39;s a big deal to type two arguments each time, =
but still.</div><div><br></div><div><br></div><div><br></div><div><br></div=
><div>Regards,</div><div><br></div><div>Oto</div></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/8e524cb0-3085-4d58-a47f-9e18b5c3e5dd%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/8e524cb0-3085-4d58-a47f-9e18b5c3e5dd=
%40isocpp.org</a>.<br />

------=_Part_2924_506472859.1553110391911--

------=_Part_2923_1150464339.1553110391911--

.