Selaa lähdekoodia

feat(vector): impl. operator=

greatbridf 2 vuotta sitten
vanhempi
commit
5e5b8a16e0
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      include/types/vector.hpp

+ 6 - 0
include/types/vector.hpp

@@ -40,6 +40,12 @@ public:
         {
         }
 
+        iterator& operator=(const iterator& iter)
+        {
+            p = iter.p;
+            return *this;
+        }
+
         explicit iterator(Pointer p) noexcept
             : p(p)
         {