[libcxx-commits] [libcxx] 7a73a2c - [libc++][NFC] Document missing __pstl_merge function in PSTL basis operations

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 4 10:40:15 PDT 2023


Author: Louis Dionne
Date: 2023-10-04T13:39:34-04:00
New Revision: 7a73a2c241211ad8b492aa13bb8908589c378d16

URL: https://github.com/llvm/llvm-project/commit/7a73a2c241211ad8b492aa13bb8908589c378d16
DIFF: https://github.com/llvm/llvm-project/commit/7a73a2c241211ad8b492aa13bb8908589c378d16.diff

LOG: [libc++][NFC] Document missing __pstl_merge function in PSTL basis operations

Added: 
    

Modified: 
    libcxx/include/__algorithm/pstl_backend.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__algorithm/pstl_backend.h b/libcxx/include/__algorithm/pstl_backend.h
index 93372f019031b63..2aa157032fe2a59 100644
--- a/libcxx/include/__algorithm/pstl_backend.h
+++ b/libcxx/include/__algorithm/pstl_backend.h
@@ -35,11 +35,25 @@ A PSTL parallel backend is a tag type to which the following functions are assoc
   template <class _ExecutionPolicy, class _RandomAccessIterator, class _Comp>
   void __pstl_stable_sort(_Backend, _RandomAccessIterator __first, _RandomAccessIterator __last, _Comp __comp);
 
+  template <class _ExecutionPolicy,
+            class _ForwardIterator1,
+            class _ForwardIterator2,
+            class _ForwardOutIterator,
+            class _Comp>
+  _ForwardOutIterator __pstl_merge(_Backend,
+                                   _ForwardIterator1 __first1,
+                                   _ForwardIterator1 __last1,
+                                   _ForwardIterator2 __first2,
+                                   _ForwardIterator2 __last2,
+                                   _ForwardOutIterator __result,
+                                   _Comp __comp);
+
   template <class _ExecutionPolicy, class _InIterator, class _OutIterator, class _UnaryOperation>
-  _OutIterator __pstl_transform(_InIterator __first, _InIterator __last, _OutIterator __result, _UnaryOperation __op);
+  _OutIterator __pstl_transform(_Backend, _InIterator __first, _InIterator __last, _OutIterator __result, _UnaryOperation __op);
 
   template <class _ExecutionPolicy, class _InIterator1, class _InIterator2, class _OutIterator, class _BinaryOperation>
-  _OutIterator __pstl_transform(_InIterator1 __first1,
+  _OutIterator __pstl_transform(_Backend,
+                                _InIterator1 __first1,
                                 _InIterator1 __last1,
                                 _InIterator2 __first2,
                                 _OutIterator __result,


        


More information about the libcxx-commits mailing list