From c27da2e38ac57f079515e4732248a87840569bc5 Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Tue, 28 Jan 2014 20:30:50 +0000 Subject: [PATCH] refs #108, added CContainerBase::to, for converting between different container types --- src/blackmisc/containerbase.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/blackmisc/containerbase.h b/src/blackmisc/containerbase.h index 8aac09834..c35d01db9 100644 --- a/src/blackmisc/containerbase.h +++ b/src/blackmisc/containerbase.h @@ -27,6 +27,18 @@ namespace BlackMisc class CContainerBase : public CValueObject { public: + /*! + * \brief Return a new container of a different type, containing the same elements as this one. + * \tparam Other the type of the new container. + * \param other an optional initial value for the new container; will be copied. + */ + template