This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

deque::at( size_type idx ) missing


Hello,
just a small annotation:
As far as I know there should be a function called
	referenze container::at( size_type idx )
and
	const_referenze container::at( size_type idx ) const
where 'container' could be vector, deque and string.
In contrast to the []-operator there should be a range
check of the paramter idx.
I've had just the need for a deque::at and it seems that
this function isn't implemented yet. (Correct me if I'm wrong)
It would just be a small hack to copy the []-operators and 
rename them to 'at'. (There still no range-check, but who 
cares ;-) )

bye
Peter

   ________         
  /    /   /\ Peter Bender                   .++,..         .__q"\ /\
 /  __/---/\/ email: pbender@gmx.de        ~~+^v^v^v~~~~~+~ ^^_|'/ ->
/__/_____/\/  www:   www.iib.bauing.tu-darmstadt.de/~bender    _/ \_>
\__\_____\/                                                   _(._):_.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]