summaryrefslogtreecommitdiffstats
path: root/libcxx/include/algorithm
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2018-01-15 17:53:34 +0000
committerMarshall Clow <mclow.lists@gmail.com>2018-01-15 17:53:34 +0000
commit674f9128b7520ad43d3358724baf0f89baeeda02 (patch)
treea88aec995d8413689bc8df3df079760f9832a2d8 /libcxx/include/algorithm
parent706ffef713a394b264ca1d4e8b8fa8d1aa38095b (diff)
downloadbcm5719-llvm-674f9128b7520ad43d3358724baf0f89baeeda02.tar.gz
bcm5719-llvm-674f9128b7520ad43d3358724baf0f89baeeda02.zip
partition_point gets the P0202 treatment
llvm-svn: 322493
Diffstat (limited to 'libcxx/include/algorithm')
-rw-r--r--libcxx/include/algorithm4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm
index 3d8bf7a4b3b..f357177e695 100644
--- a/libcxx/include/algorithm
+++ b/libcxx/include/algorithm
@@ -321,7 +321,7 @@ template <class ForwardIterator, class Predicate>
stable_partition(ForwardIterator first, ForwardIterator last, Predicate pred);
template<class ForwardIterator, class Predicate>
- ForwardIterator
+ ForwardIterator // constexpr in C++20
partition_point(ForwardIterator first, ForwardIterator last, Predicate pred);
template <class ForwardIterator>
@@ -3328,7 +3328,7 @@ partition_copy(_InputIterator __first, _InputIterator __last,
// partition_point
template<class _ForwardIterator, class _Predicate>
-_ForwardIterator
+_LIBCPP_CONSTEXPR_AFTER_CXX17 _ForwardIterator
partition_point(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred)
{
typedef typename iterator_traits<_ForwardIterator>::difference_type difference_type;
OpenPOWER on IntegriCloud