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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Random Access Iterator into FileStream Buffer


Hello all,

Is there a Random Access Iterator to a file stream buffer?

I want to implement a Tuned Boyer-Moore search on a file and use the STL as 
extensively as possible. 

If there is none would it be best to first copy the buffer into some sort of 
container (say vector) that does have random access? I don't like this 
scenario as the ifstream already has buffering implemented and copying it 
needlessly would be an unnecessary performance hit.

Kind regards,
Stephan Buys


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