fix: partition_copy parameter

This commit is contained in:
bolero-MURAKAMI 2013-11-06 00:04:06 +09:00
parent 95bb3a877d
commit a954fd7d51

View file

@ -19,7 +19,7 @@ namespace sprout {
inline SPROUT_CXX14_CONSTEXPR sprout::pair<OutputIterator1, OutputIterator2> inline SPROUT_CXX14_CONSTEXPR sprout::pair<OutputIterator1, OutputIterator2>
partition_copy(InputIterator first, InputIterator last, OutputIterator1 out_true, OutputIterator2 out_false, Predicate pred) { partition_copy(InputIterator first, InputIterator last, OutputIterator1 out_true, OutputIterator2 out_false, Predicate pred) {
for (; first != last; ++first) { for (; first != last; ++first) {
if (p(*first)) { if (pred(*first)) {
*out_true++ = *first; *out_true++ = *first;
} else { } else {
*out_false++ = *first; *out_false++ = *first;