| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| algorithms | ||
| basic_regex | ||
| constants | ||
| headers/regex | ||
| iterators | ||
| match_results | ||
| regex_error | ||
| requirements | ||
| sub_match | ||
| traits | ||
| init-list.cc | ||
| range_access.cc | ||
| regression.cc | ||
| simple_c++11.cc |
Some more C++20 changes from P1614R2, "The Mothership has Landed". This adds three-way comparison support to std::char_traits, std::basic_string, std::basic_string_view, and std::sub_match. * include/bits/basic_string.h (basic_string): Define operator<=> and remove redundant comparison operators for C++20. * include/bits/char_traits.h (__gnu_cxx::char_traits, char_traits): Add comparison_category members. (__detail::__char_traits_cmp_cat): New helper to get comparison category from char traits class. * include/bits/regex.h (regex_traits::_RegexMask::operator!=): Do not define for C++20. (sub_match): Define operator<=> and remove redundant comparison operators for C++20. (match_results): Remove redundant operator!= for C++20. * include/std/string_view (basic_string_view): Define operator<=> and remove redundant comparison operators for C++20. * testsuite/21_strings/basic_string/operators/char/cmp_c++20.cc: New test. * testsuite/21_strings/basic_string/operators/wchar_t/cmp_c++20.cc: New test. * testsuite/21_strings/basic_string_view/operations/copy/char/ constexpr.cc: Initialize variable. * testsuite/21_strings/basic_string_view/operations/copy/wchar_t/ constexpr.cc: Likewise. * testsuite/21_strings/basic_string_view/operators/char/2.cc: Add dg-do directive and remove comments showing incorrect signatures. * testsuite/21_strings/basic_string_view/operators/wchar_t/2.cc: Likewise. * testsuite/21_strings/basic_string_view/operators/char/cmp_c++20.cc: New test. * testsuite/21_strings/basic_string_view/operators/wchar_t/cmp_c++20.cc: New test. * testsuite/28_regex/sub_match/compare_c++20.cc: New test.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| algorithms | Loading commit data... | |
| basic_regex | Loading commit data... | |
| constants | Loading commit data... | |
| headers/regex | Loading commit data... | |
| iterators | Loading commit data... | |
| match_results | Loading commit data... | |
| regex_error | Loading commit data... | |
| requirements | Loading commit data... | |
| sub_match | Loading commit data... | |
| traits | Loading commit data... | |
| init-list.cc | Loading commit data... | |
| range_access.cc | Loading commit data... | |
| regression.cc | Loading commit data... | |
| simple_c++11.cc | Loading commit data... |