+ 2
Istream iterator
Refer code below : Istream iterator has input argument as cin... whats advantage of using istream iterator compared to cin alone as cin>>a? https://code.sololearn.com/cRfVfAhjMqFK/?ref=app
1 Réponse
+ 1
https://code.sololearn.com/c0o4A8ZCWPMp/?ref=app
Some other intersting used cases are mentioned on cppreference :
https://en.cppreference.com/w/cpp/iterator/istream_iterator