# | Likes | Tech tags | Title | Creator | Created date |
---|---|---|---|---|---|
1 | 0 |
2022-07-31 02:43
|
A resizable array class from the C++ Standard Template Library with an \(O(1)\) amortized time append operation.
#include <vector>
int main() {
std::vector<int> dynamic_array;
dynamic_array.push_back(5);
}
classes | ||
std::vector |
en.cppreference.com | cplusplus.com |
functions | ||
std::vector::push_back |
en.cppreference.com | cplusplus.com |
Implement an array that can be efficiently resized. Add an element to its end in an efficient-on-average manner.