C
cppaddict
Is it possible to avoid using push_back repeatedly when initializing a
vector? That is, is there a vector syntax that would be analogous to
the following array initialization syntax:
MyClass myArray[] = {
MyClass("Stan"),
MyClass("Julie")
};
Thanks for any ideas,
cpp
vector? That is, is there a vector syntax that would be analogous to
the following array initialization syntax:
MyClass myArray[] = {
MyClass("Stan"),
MyClass("Julie")
};
Thanks for any ideas,
cpp