Re: Need Container for Large Binary String
From: M Jared Finder (mfinder_at_digipen.edu)
Date: 11/14/04
- Next message: Jorgen Grahn: "Re: Need Container for Large Binary String"
- Previous message: Maxim Yegorushkin: "Re: Need Container for Large Binary String"
- In reply to: floobles: "Need Container for Large Binary String"
- Next in thread: Jorgen Grahn: "Re: Need Container for Large Binary String"
- Messages sorted by: [ date ] [ thread ]
Date: 14 Nov 2004 05:40:15 -0500
floobles wrote:
> Hi,
>
> I need to manipulate large binary strings. I would like to use some
> typical array functions (such as find first occurrence,
> insert/replace, etc.)
>
<snip>
>
> I would appreciate some suggestions on which class to use. At this
> point, I'm most likely going with the STL vector, using a for-loop to
> initialize my bytes...(ugh)
Use the constructor of vector that takes a begin iterator and an end
iterator. Pointers are iterators, so you can say
vector<char> v(p, p+length) when given a pointer and a length.
-- MJF
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
- Next message: Jorgen Grahn: "Re: Need Container for Large Binary String"
- Previous message: Maxim Yegorushkin: "Re: Need Container for Large Binary String"
- In reply to: floobles: "Need Container for Large Binary String"
- Next in thread: Jorgen Grahn: "Re: Need Container for Large Binary String"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|