From e2b9871164bdd3526b5888690f817168e673cb90 Mon Sep 17 00:00:00 2001 From: Max Lyon Date: Thu, 12 Mar 2020 09:38:20 +0100 Subject: [PATCH] add documentation to count_if method --- src/OpenMesh/Core/Mesh/SmartRange.hh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/OpenMesh/Core/Mesh/SmartRange.hh b/src/OpenMesh/Core/Mesh/SmartRange.hh index 5518878e..0c2ceaad 100644 --- a/src/OpenMesh/Core/Mesh/SmartRange.hh +++ b/src/OpenMesh/Core/Mesh/SmartRange.hh @@ -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 auto count_if(Functor&& f) -> int {