[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Missing class member in stl_vector ?



Christoph Baumann <cbauman1@ix.urz.uni-heidelberg.de> writes:

> Hi!
> 
> I have the following problem. In a c++ program I use the vector template.
> Acording to "The C++ Programming Language" by Bjarne Stroustrup there
> should be a member at() for checked random access to components of a
> vector. But it seems that there is only operator[] implemented in
> libstdc++. Is the member I need named differently or is there some sort of
> workaround?

Please write a bug report.

You can of cause implement your own at() that does range checking and
then uses operator[], but afaik that should be in the vector already.

May the Source be with you.
                        Goswin



Reply to: