diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2021-05-13 16:16:26 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2021-10-01 20:36:55 +0100 |
commit | b7e8fb5e48279ffa5f424e3dd0bb3dfcbe69f5d5 (patch) | |
tree | 0f0453d96969b192623248f0bd9ab17d70658710 /gcc | |
parent | 6ccffeb56b92041991aba923545532087e1977f5 (diff) | |
download | gcc-b7e8fb5e48279ffa5f424e3dd0bb3dfcbe69f5d5.zip gcc-b7e8fb5e48279ffa5f424e3dd0bb3dfcbe69f5d5.tar.gz gcc-b7e8fb5e48279ffa5f424e3dd0bb3dfcbe69f5d5.tar.bz2 |
libstdc++: Add container adaptor constructors taking iterators (P1425R4)
This adds a feature that was recently added to the C++23 working draft.
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:
* include/bits/stl_queue.h
(__cpp_lib_adaptor_iterator_pair_constructor): Define for C++23, as
per P1425R4.
(queue(InputIterator, InputIterator)): Likewise.
(queue(InputIterator, InputIterator, const Alloc&)): Likewise.
* include/bits/stl_stack.h
(__cpp_lib_adaptor_iterator_pair_constructor): Likewise.
(stack(InputIterator, InputIterator)): Likewise.
(stack(InputIterator, InputIterator, const Alloc&)): Likewise.
* include/std/version (__cpp_lib_adaptor_iterator_pair_constructor):
Define.
* testsuite/23_containers/queue/cons_from_iters.cc: New test.
* testsuite/23_containers/stack/cons_from_iters.cc: New test.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions