[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost
Subject:    Re: [boost] istream_iterator_limited
From:       Frederick Gotham via Boost <boost () lists ! boost ! org>
Date:       2019-11-21 9:36:00
Message-ID: XnsAB0E61A839CECfgotham () 195 ! 159 ! 176 ! 226
[Download RAW message or body]

Frederick Gotham wrote:

> - - - - THE IDEA I CAME UP WITH:
> 
> Open the file using "ifstream", and then use a special iterator that
> will stop reading from the file after 32 bytes, with syntax like this:
> 
>     ifstream logfile("log.txt");
> 
>     hex( istream_iterator_limited<char>(logfile,32),
> istream_iterator_limited<char>(), g_some_global_container.begin() );


No takers on this?

For the time being I have it in my own personal Boost stash and I use it from 
time to time when inputting from a file directly into a function like "hex".


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic