From 32e3c0298c8612442623442db83cf04c07cbd744 Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Thu, 3 Jul 2014 18:33:41 +0100 Subject: [PATCH] refs #290 Preparatory to adding CRange, refactored all const algorithm-based methods from CContainerBase into a common base class CRangeBase --- src/blackmisc/containerbase.h | 65 ++---------------------- src/blackmisc/range.h | 96 +++++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+), 62 deletions(-) create mode 100644 src/blackmisc/range.h diff --git a/src/blackmisc/containerbase.h b/src/blackmisc/containerbase.h index dafd0cad1..87a4bf008 100644 --- a/src/blackmisc/containerbase.h +++ b/src/blackmisc/containerbase.h @@ -11,6 +11,7 @@ #define BLACKMISC_CONTAINERBASE_H #include "valueobject.h" +#include "range.h" #include "indexvariantmap.h" #include "predicates.h" #include "json.h" @@ -42,10 +43,10 @@ namespace BlackMisc }; /*! - * \brief Base class for CCollection and CSequence implementing their algorithms. + * \brief Base class for CCollection and CSequence adding mutating operations and CValueObject facility on top of CRangeBase. */ template