inline char&
String::operator[]( int elem ) const
{
return _string[ elem ];
}
operator= is a reference, an object defined by T obj = arry[3] can change the value of arry[3], ended up causing unexpected behavior. True?
False. T obj = arry[3] calls copy ctor, T obj; obj = arry[3] calls copy assignment.