diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-10-01 22:02:22 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-10-01 22:02:22 +0100 |
commit | e12097eda087e492ec22adaaf368cc63c3284c4e (patch) | |
tree | 06f33c5fc83ccb572738cc68fbf24923facd7767 /libcpp/init.c | |
parent | 61e619b4fd1252d0fee7f4bfc821824031c52dc5 (diff) | |
download | gcc-e12097eda087e492ec22adaaf368cc63c3284c4e.zip gcc-e12097eda087e492ec22adaaf368cc63c3284c4e.tar.gz gcc-e12097eda087e492ec22adaaf368cc63c3284c4e.tar.bz2 |
Make some parallel mode algorithms usable in constexpr contexts
This makes the __parallel::equal and __parallel:lexicographical_compare
algorithms usable in constant expressions, by dispatching to the
sequential algorithm when calling during constant evaluation.
* include/parallel/algobase.h (equal, lexicographical_compare): Add
_GLIBCXX20_CONSTEXPR and dispatch to sequential algorithm when being
constant evaluated.
* include/parallel/algorithmfwd.h (equal, lexicographical_compare):
Add _GLIBCXX20_CONSTEXPR.
From-SVN: r276431
Diffstat (limited to 'libcpp/init.c')
0 files changed, 0 insertions, 0 deletions