When using std::array I can assign values at one time:
std::array<int, 3> a2 = {1, 2, 3};
But I don't know the best way to do it when the above array is combined into a map:
using namespace std;
map <string, array<int, 3>> myMap;
//I'm doing it like below now...
array<int, 3> tempArray = {1,2,3}; // can I save this line somehow?
myMap[myString] = tempArray;
Please also let me know if this is actually the right way. Thanks!