T
Tony Di Croce
Given:
T& operator [] ( int index ); // T is a parameterized type
What should be returned when index is out of range?
This same question comes up virtually everywhere I return a reference.
I need to return a reference (as opposed to a copy) because I want to
use this operator as an l-value sometimes...
Does anyone know what does the STL does?
Tony
T& operator [] ( int index ); // T is a parameterized type
What should be returned when index is out of range?
This same question comes up virtually everywhere I return a reference.
I need to return a reference (as opposed to a copy) because I want to
use this operator as an l-value sometimes...
Does anyone know what does the STL does?
Tony