I am very curious. What behavior does concatenating \b
do to an std::string
?
Will it simply add the '\b'
to the end of the string, or do pop_back
, and is this behavior defined? Although I can test it, I cannot do this experiment on every platform.
Some additional questions are if it just concatenated the backspace to the string, does this comparison return true or false?
std::string foo = "asdf\b";
std::string bar = "asd";
if(foo == bar)
Edit: I was pretty sure that it just concatenates the '\b'
but I just wanted to be sure.