I was wondering if there\'s an abbreviation or a more elegant way of getting the last character of a string like in:
char lastChar = myString.at( myString.le
*(myString.end() - 1) maybe? That's not exactly elegant either.
*(myString.end() - 1)
A python-esque myString.at(-1) would be asking too much of an already-bloated class.
myString.at(-1)