8 Feb
2005
8 Feb
'05
2:35 p.m.
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/ * *******************************