add a function to (size_t i) and use this function
EDIT
if you actively use stl, avoid semantic inconsistency: in std::vector operator[] it is not checked whether the index is valid, but in (..) it can throw an exception std::out_of_range . I think that in a project with more stl, similar behavior will be expected from your class.
This name may not be suitable for this function.
bayda source share