Przeglądaj źródła

Handles move assignment correctly

channel
Ludovic 'Archivist' Lagouardette 3 lat temu
rodzic
commit
11db96378a
1 zmienionych plików z 4 dodań i 4 usunięć
  1. +4
    -4
      include/gp/containers/vector.hpp

+ 4
- 4
include/gp/containers/vector.hpp Wyświetl plik

@ -14,10 +14,10 @@ namespace gp{
*/ */
template<typename T> template<typename T>
class vector final { class vector final {
T* ary = nullptr;
size_t sz = 0;
size_t cap = 0;
gp::reference_wrapper<allocator> 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<allocator> alloc; //< the allocator
public: public:
using associated_iterator = pointer_iterator<T, 1>; using associated_iterator = pointer_iterator<T, 1>;
using associated_const_iterator = const_pointer_iterator<T, 1>; using associated_const_iterator = const_pointer_iterator<T, 1>;

Ładowanie…
Anuluj
Zapisz