From ddb4b126d3040bc5b7ccdce6dbd8af18c045ccd6 Mon Sep 17 00:00:00 2001 From: Joseph Mirabel <jmirabel@laas.fr> Date: Thu, 7 Jan 2016 10:51:34 +0100 Subject: [PATCH] Add Statistics::clear --- include/hpp/statistics/bin.hh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/hpp/statistics/bin.hh b/include/hpp/statistics/bin.hh index 82806ef..1b18859 100644 --- a/include/hpp/statistics/bin.hh +++ b/include/hpp/statistics/bin.hh @@ -129,6 +129,12 @@ namespace hpp { return bins_.end(); } + /// Remove all element + void clear () + { + bins_.clear(); + } + protected: /// Constructor Statistics(); -- GitLab