mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +00:00
add new signatures: some algorithms
This commit is contained in:
parent
9a593cbb81
commit
48f1b2d615
12 changed files with 137 additions and 9 deletions
|
@ -7,6 +7,7 @@
|
|||
#include <sprout/container/functions.hpp>
|
||||
#include <sprout/iterator/operation.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/pit.hpp>
|
||||
#include <sprout/detail/container_complate.hpp>
|
||||
|
||||
namespace sprout {
|
||||
|
@ -108,6 +109,12 @@ namespace sprout {
|
|||
: sprout::detail::container_complate(result)
|
||||
;
|
||||
}
|
||||
|
||||
template<typename Result, typename InputIterator, typename BinaryPredicate>
|
||||
inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
unique_copy(InputIterator first, InputIterator last, BinaryPredicate pred) {
|
||||
return sprout::fixed::unique_copy(first, last, sprout::pit<Result>(), pred);
|
||||
}
|
||||
} // namespace fixed
|
||||
|
||||
using sprout::fixed::unique_copy;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue