Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

vector of strings initialization c++

C++17 

std::vector<std::string> v = { "xyzzy", "plugh", "abracadabra" };
std::vector<std::string> v({ "xyzzy", "plugh", "abracadabra" });
std::vector<std::string> v{ "xyzzy", "plugh", "abracadabra" };
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vector #strings #initialization
ADD COMMENT
Topic
Name
3+2 =