Define aliases for containers using polymorphic_allocator

Programming / Compilers / GCC - redi [138bc75d-0d04-0410-961f-82ee72b054a4] - 9 August 2018 23:25 EDT

These aliases are placed in the top-level header, e.g. not . This ensures that they refer to whichever of std::vector or __debug::vector or __profile::vector is in use when the header is included.

- include/std/deque (std::pmr::deque): Declare alias.
- include/std/forward_list (std::pmr::forward_list): Likewise.
- include/std/list (std::pmr::list): Likewise.
- include/std/map (std::pmr::map, std::pmr::multimap): Likewise.
- include/std/regex (std::pmr::match_results, std::pmr::cmatch) (std::pmr::smatch, std::pmr::wcmatch, std::pmr::wsmatch): Likewise.
- include/std/set (std::pmr::set, std::pmr::multiset): Likewise.
- include/std/string (std::pmr::basic_string, std::pmr::string) (std::pmr::u16string, std::pmr::u32string, std::pmr::wstring): Likewise.
- include/std/unordered_map (std::pmr::unordered_map) (std::pmr::unordered_multimap): Likewise.
- include/std/unordered_set (std::pmr::unordered_set) (std::pmr::unordered_multiset): Likewise.
- include/std/vector (std::pmr::vector): Likewise.
- testsuite/21_strings/basic_string/types/pmr_typedefs.cc: New test.
- testsuite/23_containers/deque/types/pmr_typedefs.cc: New test.
- testsuite/23_containers/forward_list/pmr_typedefs.cc: New test.
- testsuite/23_containers/list/pmr_typedefs.cc: New test.
- testsuite/23_containers/map/pmr_typedefs.cc: New test.
- testsuite/23_containers/multimap/pmr_typedefs.cc: New test.
- testsuite/23_containers/multiset/pmr_typedefs.cc: New test.
- testsuite/23_containers/set/pmr_typedefs.cc: New test.
- testsuite/23_containers/unordered_map/pmr_typedefs.cc: New test.
- testsuite/23_containers/unordered_multimap/pmr_typedefs.cc: New test.
- testsuite/23_containers/unordered_multiset/pmr_typedefs.cc: New test.
- testsuite/23_containers/unordered_set/pmr_typedefs.cc: New test.
- testsuite/23_containers/vector/pmr_typedefs.cc: New test.
- testsuite/28_regex/match_results/pmr_typedefs.cc: New test.

002ced10e57 Define aliases for containers using polymorphic_allocator
libstdc++-v3/ChangeLog | 34 ++++++++++++++
libstdc++-v3/include/std/deque | 14 ++++++
libstdc++-v3/include/std/forward_list | 13 ++++++
libstdc++-v3/include/std/list | 14 +++++-
libstdc++-v3/include/std/map | 20 +++++++++
libstdc++-v3/include/std/regex | 21 +++++++++
libstdc++-v3/include/std/set | 16 +++++++
libstdc++-v3/include/std/string | 20 +++++++++
libstdc++-v3/include/std/unordered_map | 21 +++++++++
libstdc++-v3/include/std/unordered_set | 22 +++++++++
libstdc++-v3/include/std/vector | 14 +++++-
.../21_strings/basic_string/types/pmr_typedefs.cc | 52 ++++++++++++++++++++++
.../23_containers/deque/types/pmr_typedefs.cc | 27 +++++++++++
.../23_containers/forward_list/pmr_typedefs.cc | 27 +++++++++++
.../testsuite/23_containers/list/pmr_typedefs.cc | 27 +++++++++++
.../testsuite/23_containers/map/pmr_typedefs.cc | 33 ++++++++++++++
.../23_containers/multimap/pmr_typedefs.cc | 33 ++++++++++++++
.../23_containers/multiset/pmr_typedefs.cc | 30 +++++++++++++
.../testsuite/23_containers/set/pmr_typedefs.cc | 30 +++++++++++++
.../23_containers/unordered_map/pmr_typedefs.cc | 37 +++++++++++++++
.../unordered_multimap/pmr_typedefs.cc | 37 +++++++++++++++
.../unordered_multiset/pmr_typedefs.cc | 36 +++++++++++++++
.../23_containers/unordered_set/pmr_typedefs.cc | 36 +++++++++++++++
.../testsuite/23_containers/vector/pmr_typedefs.cc | 27 +++++++++++
.../28_regex/match_results/pmr_typedefs.cc | 44 ++++++++++++++++++
25 files changed, 683 insertions(+), 2 deletions(-)

Upstream: gcc.gnu.org


  • Share