C++intermediatecliAI generated

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

  1. 01

    Implement the basic templated container

    ~2h

    Write a class template with dynamic array storage, push_back, and operator[] with a bounds-checked access variant.

  2. 02

    Implement growth strategy and capacity management

    ~1.5h

    Add automatic capacity doubling on growth and a reserve() method to preallocate.

  3. 03

    Add copy and move semantics

    ~2h

    Implement copy constructor/assignment and move constructor/assignment following the rule of five.

  4. 04

    Implement iterator support

    ~2h

    Add begin()/end() returning random-access iterators so the container works with range-based for and STL algorithms.

  5. 05

    Write a Google Test unit test suite

    ~2h

    Write tests covering growth, bounds, move semantics, and iterator correctness.

Ready to build this?

Get a GitHub repo and start building. Your AI reviewer checks each step as you go.

~9.5h · 5 steps

Tech stack

TemplatesGoogle Test