I am working with the library Gtkmm in C++. But I wonder if I can create a vector of a Grid
for instance? I mean in C++ I can create a vector of int
and add an element dynamically with the method push_back()
. Is it possible to do the same with Gtkmm?
Thank you for your help.
Vectors have template parameters.
Just do something like that:
You could replace this template parameter with any other concrete type and you'll have a vector of that type.