mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +00:00
fix support for STL container: some algorithms
This commit is contained in:
parent
ace6acad69
commit
a9cd556f8e
28 changed files with 911 additions and 106 deletions
|
@ -18,6 +18,12 @@ namespace sprout {
|
|||
copy_if(Input const& input, Result const& result, Predicate pred) {
|
||||
return sprout::fixed::copy_if(sprout::begin(input), sprout::end(input), result);
|
||||
}
|
||||
|
||||
template<typename Result, typename Input, typename Predicate>
|
||||
inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
copy_if(Input const& input, Predicate pred) {
|
||||
return sprout::fixed::copy_if<Result>(sprout::begin(input), sprout::end(input));
|
||||
}
|
||||
} // namespace fixed
|
||||
|
||||
using sprout::range::fixed::copy_if;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue