yusuke
2/15/2020 - 5:11 AM

初期化

vector

std::vector<int> v(N);     // reserve "int x N" array.
std::vector<int> v(N, 0);  // reserve "int x N" array & initialize them to 0.
std::vector<int> v = {1, 2, 3, 4, 5};

map

std::map<char, int> m = {
  {'a', 27}, {'b', 28}
};