diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-07-23 12:45:37 +0100 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2024-07-28 19:05:56 +0200 |
commit | a2a6695d8aa63e03bd52351c4435a88a8b78802a (patch) | |
tree | 295efa22dd1633804d78fef434dde372b32190ce /libcpp | |
parent | 0e3c6a936568c859e4653854f0cd4206f390d56e (diff) | |
download | gcc-a2a6695d8aa63e03bd52351c4435a88a8b78802a.zip gcc-a2a6695d8aa63e03bd52351c4435a88a8b78802a.tar.gz gcc-a2a6695d8aa63e03bd52351c4435a88a8b78802a.tar.bz2 |
libstdc++: Use concepts and conditional explicit in std::optional
For C++20 mode we can improve compile times by using conditional
explicit to reduce the number of constructor overloads. We can also use
requires-clauses instead of SFINAE to implement constraints on the
constructors and assignment operators.
libstdc++-v3/ChangeLog:
* include/std/optional (optional): Use C++20 features to
simplify overload sets for constructors and assignment
operators.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions