stdcxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lee <csmacd...@gmail.com>
Subject std::istream_iterator::iterator ??
Date Thu, 03 Jul 2008 02:07:38 GMT

I saw strange example in Apache C++ Standard Library User's Guide

http://stdcxx.apache.org/doc/stdlibug/2-3.html
http://stdcxx.apache.org/doc/stdlibug/2-3.html 

std::istream_iterator<int, char>::iterator where = std::find(intstream, eof,
7);

I didn't compile this example.  

I don't understand why it need ::itrerator and why compiler didn't compile
it?

Is it wrong example?

Rogue-wave's documents show this example, too

http://www2.roguewave.com/support/docs/sourcepro/edition9-update1/html/stdlibug/2-3.html
http://www2.roguewave.com/support/docs/sourcepro/edition9-update1/html/stdlibug/2-3.html 
-- 
View this message in context: http://www.nabble.com/std%3A%3Aistream_iterator%3A%3Aiterator----tp18250458p18250458.html
Sent from the stdcxx-user mailing list archive at Nabble.com.


Mime
View raw message