Description: The header 'boost/range/algorithm/count_if.hpp'contains the algorithm count_if() in C++ boost library. This function is very similar to boost::range::count() the only difference in this version is that this function uses unary predicate which returns a value convertible to bool. The value returned indicates whether the element of the sequence has to be counted by the function.
Parameters: The following parameters are accepted by the function: 1.) rng: It specifies the sequence which has to be reversed. 2.) pred: Unary predicate which accepts each elements of the sequence and returns the Boolean value where true indicates the element has to be counted.
Comments