I have Class Email, there is parameter "bcc" in her constructor. Its actually list of emails for copies. There is no fixed number of these emails and later i have to have possibility to extend this list.
//constructor prototype
Email::Email(vector<string> bcc)
So i want to use type vector or list for that and function push_back(). How can i make a new instance with bcc emails?
I need actually declaration with definition for my list.
I've found this definition with iterator for integer type:
int myints[] = {16,2,77,29};
Email myEmail(vector<int> (myints, myints + sizeof(myints) / sizeof(int) ));
, but its not very user friend and i need it with strings.
Is there something like this?
Email myEmail(vector<string> ("first","second","third"));