vector to char array c++ code example
Example 1: char vector to string c++
std::vector<char> input({ 'a', 'b', 'c' });
std::string s(input.begin(), input.end());
Example 2: vector to char array c++
std::vector<int> vec {1, 2, 3};
const int* = vec.data();