In this code I'm filling the vector alpha
with letters from 'a'
to 'z'
:
std::vector<char> alpha(26);
std::iota(alpha.begin(), alpha.end(), 'a');
I'm assuming this will not work with all character encodings, can anyone confirm? Or deny?
And if the former is true, is there any solid alternative?