ΒΆtemplate <typename R, typename E>
auto count(R&& Range, const E& Element) ->
    typename std::iterator_traits<
        decltype(adl_begin(
            Range))>::difference_type

Description

Wrapper function around std::count to count the number of times an element\p Element occurs in the given range \p Range.

Declared at: llvm/include/llvm/ADT/STLExtras.h:1248

Templates

R
E

Parameters

R&& Range
const E& Element