#include <iostream>
#include <vector>

struct Cell
{
    Cell(int height) : _height(height) {}
    int height() const {return _height;}

private:
    int _height;
};

int main()
{
    std::vector<Cell> v = { 2, 4, 8, 16, 32 };

    for (std::size_t index = 0; index < v.size(); ++index)
        std::cout << "Height at index " << index << " is " << v[index].height() << '\n';
}