std::count
std::count, std::count_if
Defined in header <algorithm> | ||
---|---|---|
template< class InputIt, class T > typename iterator_traits<InputIt>::difference_type count( InputIt first, InputIt last, const T &value ); | (1) | |
template< class ExecutionPolicy, class ForwardIt, class T > typename iterator_traits<ForwardIt>::difference_type count( ExecutionPolicy&& policy, ForwardIt first, ForwardIt last, const T &value ); | (2) | (since C++17) |
登录查看完整内容 |