summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kdx.42@42l.fr>2023-01-11 03:28:42 +0100
committerkdx <kdx.42@42l.fr>2023-01-11 03:28:42 +0100
commita0466bb648c096ed277ab2d662b2ef5c42f788bf (patch)
treea671cb326c43203dacaaddc199c2ca01067d68b5
parent15f24ce4fcf9a8038a3035574d241760644a4ea7 (diff)
download42-containers-a0466bb648c096ed277ab2d662b2ef5c42f788bf.tar.gz
can't focus on this shit
-rw-r--r--vector.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/vector.hpp b/vector.hpp
index 89c9bc2..a0f8adc 100644
--- a/vector.hpp
+++ b/vector.hpp
@@ -111,5 +111,12 @@ namespace ft {
template<class T, class Alloc>
bool operator>=(const vector<T,Alloc>& lhs,
const vector<T,Alloc>& rhs);
-}
+ template<class T, class Alloc>
+ vector<T,Alloc>::vector()
+ {
+ _size = 0;
+ _capacity = 0;
+ _data = NULL;
+ }
+}