#pragma once #include "tl/detail/prologue.h" #include "tl/iterator.h" #include namespace tl { ////////////////////////////////////////////////////////////////////////// // count() // // Container-based version of the `std::count()` function to // count values that match within a container template auto count(const C& c, T&& value) noexcept -> typename std::iterator_traits::difference_type; // count_if() // // Container-based version of the `std::count()` function to // count values that match within a container template auto count_if(const C& c, UnaryPredicate&& p) noexcept -> typename std::iterator_traits::difference_type; ////////////////////////////////////////////////////////////////////////// } // end namespace tl