Custom Dynamic Array Container Library
A templated dynamic array container similar to std::vector implemented from scratch with growth strategy, iterators, and move semantics, accompanied by a unit test suite. Learners practice C++ templates, RAII, iterator design, and move constructors/assignment.
- Estimate
- ~9.5h
- Steps
- 5
- Completed by
- 0
- Proposed by
- codeseed.app
Templates · Google Test
Project roadmap
- 01
Implement the basic templated container
~2hWrite a class template with dynamic array storage, push_back, and operator[] with a bounds-checked access variant.
- 02
Implement growth strategy and capacity management
~1.5hAdd automatic capacity doubling on growth and a reserve() method to preallocate.
- 03
Add copy and move semantics
~2hImplement copy constructor/assignment and move constructor/assignment following the rule of five.
- 04
Implement iterator support
~2hAdd begin()/end() returning random-access iterators so the container works with range-based for and STL algorithms.
- 05
Write a Google Test unit test suite
~2hWrite tests covering growth, bounds, move semantics, and iterator correctness.
Resources
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack