From 101c5a4f9891d146a080e36408a4b70722a15dbb Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Thu, 3 Jul 2014 20:06:13 +0100 Subject: [PATCH] refs #290 using a CRange of iterator adaptors to return from the primary predicate-based methods of CRangeBase without copying elements --- src/blackmisc/collection.h | 2 +- src/blackmisc/containerbase.h | 4 +- src/blackmisc/range.h | 81 ++++++++++++++----- src/blackmisc/sequence.h | 2 +- .../fscommon/aircraftcfgentrieslist.cpp | 2 +- 5 files changed, 65 insertions(+), 26 deletions(-) diff --git a/src/blackmisc/collection.h b/src/blackmisc/collection.h index f84dafae9..c235c2e28 100644 --- a/src/blackmisc/collection.h +++ b/src/blackmisc/collection.h @@ -42,7 +42,7 @@ namespace BlackMisc * Can take any suitable container class as its implementation at runtime. */ template - class CCollection : public CContainerBase + class CCollection : public CContainerBase> { public: //! \brief STL compatibility diff --git a/src/blackmisc/containerbase.h b/src/blackmisc/containerbase.h index 87a4bf008..2d89aff5a 100644 --- a/src/blackmisc/containerbase.h +++ b/src/blackmisc/containerbase.h @@ -45,8 +45,8 @@ namespace BlackMisc /*! * \brief Base class for CCollection and CSequence adding mutating operations and CValueObject facility on top of CRangeBase. */ - template