5 #ifndef VCCC_ALGORITHM_RANGES_COUNT_HPP
6 #define VCCC_ALGORITHM_RANGES_COUNT_HPP
27 struct count_niebloid {
28 template<
typename I,
typename S,
typename T,
typename Proj = identity, std::enable_if_t<
29 algo_check_binary_input_iterator<indirect_binary_predicate, I, S, const T*, Proj, ranges::equal_to>
31 constexpr iter_difference_t<I> operator()(I
first, S last,
const T&
value, Proj proj = {})
const {
34 iter_difference_t<I> counter = 0;
45 template<
typename R,
typename T,
typename Proj = identity, std::enable_if_t<
47 constexpr range_difference_t<R>
48 operator()(R&& r,
const T&
value, Proj proj = {})
const {
constexpr VCCC_INLINE_OR_STATIC detail::count_niebloid count
Definition: count.hpp:58
constexpr invoke_result_t< F, Args... > invoke(F &&f, Args &&... args) noexcept(is_nothrow_invocable< F, Args... >::value)
Definition: invoke.hpp:38
constexpr VCCC_INLINE_OR_STATIC detail::begin_niebloid begin
returns an iterator to the beginning of a range
Definition: begin.hpp:116
constexpr VCCC_INLINE_OR_STATIC detail::end_niebloid end
returns a sentinel indicating the end of a range
Definition: end.hpp:120
#define VCCC_INLINE_OR_STATIC
Definition: inline_or_static.hpp:9
Definition: cxx20_rel_ops.hpp:17
Definition: directory.h:12
constexpr VCCC_INLINE_OR_STATIC detail::element_niebloid< 0 > first
Definition: key_value.hpp:34
constexpr VCCC_INLINE_OR_STATIC detail::element_niebloid< 1 > value
Definition: key_value.hpp:35