reference operator[]( size_type pos ); (1) const_reference operator[]( size_type pos ) const; (2)
Returns a reference to the character at specified location pos. No bounds checking is performed.
1) If pos == size(), the behavior is undefined. 2) If pos == size(), a reference to the character with value CharT() (the null character) is returned. (until C++11) If pos == size(), a reference to the character with value CharT() (the null character) is returned.
For the first