fix algorithm: bogo_sort, bozo_sort

This commit is contained in:
bolero-MURAKAMI 2013-02-04 01:10:26 +09:00
parent aace49ac65
commit f3b405ad0f
75 changed files with 634 additions and 776 deletions

View file

@ -13,10 +13,10 @@ namespace sprout {
//
// copy_while
//
template<typename Input, typename Result, typename Predicate>
template<typename InputRange, typename Result, typename Predicate>
inline SPROUT_CONSTEXPR typename sprout::fit::result_of::algorithm<Result>::type
copy_while(Input const& input, Result const& result, Predicate pred) {
return sprout::fit::copy_while(sprout::begin(input), sprout::end(input), result, pred);
copy_while(InputRange const& rng, Result const& result, Predicate pred) {
return sprout::fit::copy_while(sprout::begin(rng), sprout::end(rng), result, pred);
}
} // namespace fit
} // namespace range