[opensource-dev] Replacement class for LLDynamicArray
Nicky D.
sl.nicky.ml at googlemail.com
Fri May 9 06:37:15 PDT 2014
>
>
> > I notice "operator[](i)" is used in the interesting,
>
> With std::vector, you could also use array.at(i), which is equivalent.
>
>
vector::at will do a runtime check if the index is out of bounds, in that
case it throws
an exception.
vector::operator[] will not do this check, causing undefined behavior when
accessing
elements out of bounds.
Nicky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/opensource-dev/attachments/20140509/8fa4aa1c/attachment.htm
More information about the opensource-dev
mailing list