From 11db96378a792031dd3ec25869ab05fb3fafcd06 Mon Sep 17 00:00:00 2001 From: Ludovic 'Archivist' Lagouardette Date: Sun, 11 Apr 2021 11:56:46 +0200 Subject: [PATCH] Handles move assignment correctly --- include/gp/containers/vector.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/gp/containers/vector.hpp b/include/gp/containers/vector.hpp index 7713a97..6fc2377 100644 --- a/include/gp/containers/vector.hpp +++ b/include/gp/containers/vector.hpp @@ -14,10 +14,10 @@ namespace gp{ */ template class vector final { - T* ary = nullptr; - size_t sz = 0; - size_t cap = 0; - gp::reference_wrapper alloc; + T* ary = nullptr; //< The data + size_t sz = 0; //< the used size of the array + size_t cap = 0; //< the available capacity of the array + gp::reference_wrapper alloc; //< the allocator public: using associated_iterator = pointer_iterator; using associated_const_iterator = const_pointer_iterator;