mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +00:00
fix next, prev
This commit is contained in:
parent
75228465fe
commit
cf9f6670b6
18 changed files with 243 additions and 0 deletions
|
@ -58,6 +58,11 @@ namespace sprout {
|
|||
} //namespace detail
|
||||
|
||||
// 25.2.9 Count
|
||||
//
|
||||
// recursion depth:
|
||||
// [first, last) is RandomAccessIterator -> O(log N)
|
||||
// otherwise -> O(N)
|
||||
//
|
||||
template<typename InputIterator, typename Predicate>
|
||||
inline SPROUT_CONSTEXPR typename std::iterator_traits<InputIterator>::difference_type
|
||||
count_if(InputIterator first, InputIterator last, Predicate pred) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue