View Single Post
Re: Pointer to vector element
Old
  (#8)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: Pointer to vector element - 08-03-2004

Well, ignore my comment earlier I misread @$.1415rin's post.
A small test shows that &(*iterator) gives a pointer to the element.

Thanks to all who posted here.

@PMB:
Then there are more steps to do, its a choice between wasting memory or extra lookup steps.
I looked at this problem and saw an object-oriented solution though those methods you mentioned probably work great aswell.
vbmenu_register("postmenu_8440", true);
  
Reply With Quote