mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-14 10:39:05 +00:00
fix: partition_copy parameter
This commit is contained in:
parent
95bb3a877d
commit
a954fd7d51
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ namespace sprout {
|
|||
inline SPROUT_CXX14_CONSTEXPR sprout::pair<OutputIterator1, OutputIterator2>
|
||||
partition_copy(InputIterator first, InputIterator last, OutputIterator1 out_true, OutputIterator2 out_false, Predicate pred) {
|
||||
for (; first != last; ++first) {
|
||||
if (p(*first)) {
|
||||
if (pred(*first)) {
|
||||
*out_true++ = *first;
|
||||
} else {
|
||||
*out_false++ = *first;
|
||||
|
|
Loading…
Reference in a new issue