In my code, I want to use a byte-vector to store some data in memory. The problem is, that my current approach uses many lines of code:
std::vector<byte> v;
v.push_back(0x13);
v.push_back(0x37);
v.push_back(0xf0);
v.push_back(0x0d);
How can I shorten this procedure so that I have for example something like:
std::vector<byte> v(4) = "\x13\x37\xf0\x0d"; // example code - not working
?