[shell-coding] STL and structs

Is it possible to use the STL with nontrivial objects?

All the code that I've found so far (without a concentrated effort, mind
you) uses either basic types, or pointers to structs/classes.  If I just
stick the struct in there, it looks like I'll waste a lot of time copying
things, and if I use pointers it'll waste time and resources with all the
extra memory allocation.

I dunno, maybe I'm going at it entirely the wrong way...  there doesn't
seem to be a way to add an empty item to a vector and then set its
contents in-place, you have to copy it in?

-rabidcow



    

________________________________________________________________
Sign Up for Juno Platinum Internet Access Today
Only $9.95 per month!
Visit www.juno.com

__________________________________________________
Subscription options and archive:
http://www.freelists.org/list/shell-coding

Other related posts: