Эх сурвалжийг харах

refactor(list, vector): simplify def.

greatbridf 2 жил өмнө
parent
commit
58349d6b5c

+ 2 - 2
include/types/list.hpp

@@ -172,14 +172,14 @@ public:
         tail->connect(head);
     }
 
-    list(const list<T, Allocator>& v)
+    list(const list& v)
         : list()
     {
         for (const auto& item : v)
             push_back(item);
     }
 
-    list<T, Allocator>& operator=(const list<T, Allocator>& v)
+    list& operator=(const list& v)
     {
         clear();
         for (const auto& item : v)

+ 1 - 1
include/types/vector.hpp

@@ -115,7 +115,7 @@ public:
         resize(capacity);
     }
 
-    vector(const vector<T, Allocator>& arr) noexcept
+    vector(const vector& arr) noexcept
         : vector(arr.capacity())
     {
         for (const auto& item : arr)