?
=?ISO-8859-1?Q?Mart_K=E4sper?=
Hi,
suppose a collection type of class that might return references to
classes of type Object - it has (among others) access methods as follows:
virtual Object*& at(int) = 0;
virtual const Object *const& at(long) const = 0;
where the int and the long denote the internal order within the
collection, numbered from 0..[size-1]
My question is: what on earth does the second method return ? How come
anyone ever declares a method in that way ... would it be that bad to
rephrase it into the form of the first method ?
Thanks in advance
suppose a collection type of class that might return references to
classes of type Object - it has (among others) access methods as follows:
virtual Object*& at(int) = 0;
virtual const Object *const& at(long) const = 0;
where the int and the long denote the internal order within the
collection, numbered from 0..[size-1]
My question is: what on earth does the second method return ? How come
anyone ever declares a method in that way ... would it be that bad to
rephrase it into the form of the first method ?
Thanks in advance