This website works better with JavaScript.
Home
Explore
Help
Sign In
felix
/
ftb
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
added extend for array list
master
Felix Brendel
5 years ago
parent
3a8b477563
commit
33bac14926
1 changed files
with
9 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+9
-0
arraylist.hpp
+ 9
- 0
arraylist.hpp
View File
@@ -26,6 +26,15 @@ struct Array_List {
}
}
void extend(std::initializer_list<type> l) {
reserve(l.size());
for (type e : l) {
append(e);
}
}
void dealloc() {
free(data);
data = nullptr;
Write
Preview
Loading…
Cancel
Save