diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2018-01-15 17:20:36 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2018-01-15 17:20:36 +0000 |
commit | 706ffef713a394b264ca1d4e8b8fa8d1aa38095b (patch) | |
tree | dd37bab74c4ec874c10884fef7208e8d822cf7dc /libcxx/include/algorithm | |
parent | 8a3735c00695fe43558f4842a3609c519ee1ebb2 (diff) | |
download | bcm5719-llvm-706ffef713a394b264ca1d4e8b8fa8d1aa38095b.tar.gz bcm5719-llvm-706ffef713a394b264ca1d4e8b8fa8d1aa38095b.zip |
More constexpr algorithms from P0202. any_of/all_of/none_of.
llvm-svn: 322492
Diffstat (limited to 'libcxx/include/algorithm')
-rw-r--r-- | libcxx/include/algorithm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm index cea6b248c6f..3d8bf7a4b3b 100644 --- a/libcxx/include/algorithm +++ b/libcxx/include/algorithm @@ -20,15 +20,15 @@ namespace std { template <class InputIterator, class Predicate> - bool + constexpr bool // constexpr in C++20 all_of(InputIterator first, InputIterator last, Predicate pred); template <class InputIterator, class Predicate> - bool + constexpr bool // constexpr in C++20 any_of(InputIterator first, InputIterator last, Predicate pred); template <class InputIterator, class Predicate> - bool + constexpr bool // constexpr in C++20 none_of(InputIterator first, InputIterator last, Predicate pred); template <class InputIterator, class Function> @@ -919,7 +919,7 @@ inline _LIBCPP_INLINE_VISIBILITY int __pop_count(unsigned long long __x) { // all_of template <class _InputIterator, class _Predicate> -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 bool all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) { @@ -932,7 +932,7 @@ all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) // any_of template <class _InputIterator, class _Predicate> -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 bool any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) { @@ -945,7 +945,7 @@ any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) // none_of template <class _InputIterator, class _Predicate> -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 bool none_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) { |