[shell-coding] STL and structs
- From: rabidcow@xxxxxxxx
- To: shell-coding@xxxxxxxxxxxxx
- Date: Wed, 4 Dec 2002 23:05:01 -0800
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:
- » [shell-coding] STL and structs