If you are running on a 32-bit system, you are probably out of luck doing it in a simple way, although the thread library can use the 64-bit word for its pos_type . However, this may work to use relative queries. Since all requests return a pos_type , which supposedly indicates the current position, this may still not work too well.
I think it's just me, but I have never looked for too much. Of course, having realized this mess, I also know that searching inevitably kills performance and that it really only works when using files opened in std::ios_base::binary mode that do not use any code conversion.
source share