Which one of these for loops will iterate through each character in a std::string faster?
Code:
for (unsigned i = 0u; i < str.length(); ++i)
Code:
for (unsigned i = 0u, end = str.length(); i < end; ++i)
Comment