diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2018-01-19 17:45:39 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2018-01-19 17:45:39 +0000 |
commit | 99894b61baaa37fd03d0311e882e731dd143f1e6 (patch) | |
tree | 6c64981151e4c0c140409465e6d1050cffe8923d /libcxx/include/algorithm | |
parent | aac0f8f39919c8f0e9253d028a482a6518d75599 (diff) | |
download | bcm5719-llvm-99894b61baaa37fd03d0311e882e731dd143f1e6.tar.gz bcm5719-llvm-99894b61baaa37fd03d0311e882e731dd143f1e6.zip |
More P0202 constexpr-ifying in <algorithm>. This commit handles 'transform'.
llvm-svn: 322970
Diffstat (limited to 'libcxx/include/algorithm')
-rw-r--r-- | libcxx/include/algorithm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm index 4672810a21a..9ec146a6798 100644 --- a/libcxx/include/algorithm +++ b/libcxx/include/algorithm @@ -193,11 +193,11 @@ template <class ForwardIterator1, class ForwardIterator2> iter_swap(ForwardIterator1 a, ForwardIterator2 b); template <class InputIterator, class OutputIterator, class UnaryOperation> - OutputIterator + constexpr OutputIterator // constexpr in C++20 transform(InputIterator first, InputIterator last, OutputIterator result, UnaryOperation op); template <class InputIterator1, class InputIterator2, class OutputIterator, class BinaryOperation> - OutputIterator + constexpr OutputIterator // constexpr in C++20 transform(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, OutputIterator result, BinaryOperation binary_op); @@ -1946,7 +1946,7 @@ move_backward(_BidirectionalIterator1 __first, _BidirectionalIterator1 __last, // transform template <class _InputIterator, class _OutputIterator, class _UnaryOperation> -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 _OutputIterator transform(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _UnaryOperation __op) { @@ -1956,7 +1956,7 @@ transform(_InputIterator __first, _InputIterator __last, _OutputIterator __resul } template <class _InputIterator1, class _InputIterator2, class _OutputIterator, class _BinaryOperation> -inline _LIBCPP_INLINE_VISIBILITY +inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX17 _OutputIterator transform(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _OutputIterator __result, _BinaryOperation __binary_op) |