diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-28 01:18:50 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-28 01:18:50 +0000 |
commit | b710db753c92522f9acfbef4a02b440e4178b067 (patch) | |
tree | 30ffc1e811959ea05821d9636bcefc329fce0e80 | |
parent | Fix up removeAll and test with more complex hierarchy (diff) | |
download | ilt-b710db753c92522f9acfbef4a02b440e4178b067.tar.bz2 ilt-b710db753c92522f9acfbef4a02b440e4178b067.tar.xz ilt-b710db753c92522f9acfbef4a02b440e4178b067.zip |
Add standard special members
-rw-r--r-- | lib/collection.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/collection.h b/lib/collection.h index 5f39e71..91a36c2 100644 --- a/lib/collection.h +++ b/lib/collection.h @@ -3,13 +3,17 @@ #include <algorithm> #include <functional> #include <memory> +#include <special_members.h> #include <type_traits> #include <vector> template<typename Ptr, typename... Others> class Collection { public: + Collection() = default; virtual ~Collection() = default; + DEFAULT_MOVE_NO_COPY(Collection); + using Object = Ptr::element_type; using Objects = std::vector<Ptr>; template<typename T> using OtherObjects = std::vector<T *>; |