add documentation to count_if method

This commit is contained in:
Max Lyon
2020-03-12 09:38:20 +01:00
committed by Patrick Schmidt
parent 6c392fd18f
commit cce116d823

View File

@@ -353,6 +353,12 @@ struct SmartRangeT
}
/** @brief Compute number of elements that satisfy a given predicate.
*
* Computes the numer of elements which satisfy functor \p f.
*
* @param f Predicate that elements have to satisfy in order to be counted.
*/
template <typename Functor>
auto count_if(Functor&& f) -> int
{