diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2018-08-21 19:44:41 +0000 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2018-08-21 19:44:41 +0000 |
commit | f7191a37eedbb41b78346a767d5a071333a6b3e8 (patch) | |
tree | feb7413ac10e362d9a85edab1e2ed7fdf801b012 /gcc/final.c | |
parent | fa3d2d38107033fc7620171474fbb7e2894cc79e (diff) | |
download | gcc-f7191a37eedbb41b78346a767d5a071333a6b3e8.zip gcc-f7191a37eedbb41b78346a767d5a071333a6b3e8.tar.gz gcc-f7191a37eedbb41b78346a767d5a071333a6b3e8.tar.bz2 |
P0646R1 Improving the Return Value of Erase-Like Algorithms I
2018-08-21 François Dumont <fdumont@gcc.gnu.org>
P0646R1 Improving the Return Value of Erase-Like Algorithms I
* include/debug/forward_list (forward_list::__remove_return_type):
Define typedef as size_type or void, according to __cplusplus value.
(_GLIBCXX_FWDLIST_REMOVE_RETURN_TYPE_TAG): Define macro as abi-tag or
empty, according to __cplusplus value.
(_GLIBCXX20_ONLY): Define macro.
(forward_list::remove, forward_list::unique): Use typedef and macro
to change return type and add abi-tag for C++2a. Return number of
removed elements for C++2a.
(forward_list::remove_if<Pred>, forward_list::unique<BinPred>): Use
typedef to change return type for C++2a. Return number of removed
elements for C++2a.
* include/debug/list (list::__remove_return_type): Define typedef as
size_type or void, according to __cplusplus value.
(_GLIBCXX_LIST_REMOVE_RETURN_TYPE_TAG): Define macro as abi-tag or
empty, according to __cplusplus value.
(_GLIBCXX20_ONLY): Define macro.
(list::remove, list::unique): Use typedef and macro to change return
type and add abi-tag for C++2a. Return number of removed elements for
C++2a.
(list::remove_if<Predicate>, list::unique<BinaryPredicate>): Use typedef
to change return type for C++2a. Return number of removed elements for
C++2a.
From-SVN: r263752
Diffstat (limited to 'gcc/final.c')
0 files changed, 0 insertions, 0 deletions