[libcxx-commits] [PATCH] D58272: Add .gitignore

Thomas Rodgers via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Feb 14 22:23:17 PST 2019


rodgert updated this revision to Diff 186961.
rodgert added a comment.

- Add ifdef guards for parallel overloads


Repository:
  rPSTL pstl

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58272/new/

https://reviews.llvm.org/D58272

Files:
  .gitignore
  include/pstl/internal/algorithm_impl.h


Index: include/pstl/internal/algorithm_impl.h
===================================================================
--- include/pstl/internal/algorithm_impl.h
+++ include/pstl/internal/algorithm_impl.h
@@ -2428,6 +2428,7 @@
     return internal::brick_fill_n(__first, __count, __value, __is_vector);
 }
 
+#if __PSTL_USE_PAR_POLICIES
 template <class _ExecutionPolicy, class _OutputIterator, class _Size, class _Tp, class _IsVector>
 _OutputIterator
 pattern_fill_n(_ExecutionPolicy&& __exec, _OutputIterator __first, _Size __count, const _Tp& __value,
@@ -2436,6 +2437,7 @@
     return internal::pattern_fill(std::forward<_ExecutionPolicy>(__exec), __first, __first + __count, __value,
                                   std::true_type(), __is_vector);
 }
+#endif
 
 //------------------------------------------------------------------------
 // generate, generate_n
@@ -2502,6 +2504,7 @@
     return internal::brick_generate_n(__first, __count, __g, __is_vector);
 }
 
+#if __PSTL_USE_PAR_POLICIES
 template <class _ExecutionPolicy, class _OutputIterator, class _Size, class _Generator, class _IsVector>
 _OutputIterator
 pattern_generate_n(_ExecutionPolicy&& __exec, _OutputIterator __first, _Size __count, _Generator __g,
@@ -2512,6 +2515,7 @@
     return internal::pattern_generate(std::forward<_ExecutionPolicy>(__exec), __first, __first + __count, __g,
                                       std::true_type(), __is_vector);
 }
+#endif
 
 //------------------------------------------------------------------------
 // remove
Index: .gitignore
===================================================================
--- /dev/null
+++ .gitignore
@@ -0,0 +1,2 @@
+build/*.exe
+build/*.o
\ No newline at end of file


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58272.186961.patch
Type: text/x-patch
Size: 1712 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190215/57fed151/attachment.bin>


More information about the libcxx-commits mailing list