Hello all, If you were to write a container that had a certain size, say 6, but may not always contain 6 items, say it contains 4, what would it be best to have the following methods do? size() - returns 6 or 4? end() - returns an iterator on the 5th or 7th element? I'm not sure if the standard way of writing such things dictates a certain approach, or if it is purely down to the intended use. Thanks for any information. Gaz ******************************* * http://planetearthworm.com/ * *******************************
Hi Gareth,
My first comment is that this might not be the
best newgroup to ask this in.
"Foster, Gareth"
participants (2)
-
Foster, Gareth
-
Thorsten Ottosen