P
Patrick
I have a Vector *vectorA* of Objects of type *ClassB* composed within
*ClassA* as a private member, and i have a public *methodA* in
*ClassA* that returns an Iterator of *vectorA*.
This Iterator will allow the elements of *vectorA* to be modified.
Apart from creating a seperate copy of *vectorA*, is there any means
of enforcing the restriction that the Iterator not allow modifications
to both the elements of *vectorA* (instances of *ClassB*) and the
vector itself?
any help appreciated..
pat
*ClassA* as a private member, and i have a public *methodA* in
*ClassA* that returns an Iterator of *vectorA*.
This Iterator will allow the elements of *vectorA* to be modified.
Apart from creating a seperate copy of *vectorA*, is there any means
of enforcing the restriction that the Iterator not allow modifications
to both the elements of *vectorA* (instances of *ClassB*) and the
vector itself?
any help appreciated..
pat