Looking for an equivalent to C++ std::getline in D

Patrick Schluter via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 7 02:46:22 PDT 2017


On Saturday, 6 May 2017 at 10:15:03 UTC, k-five wrote:
>
> Although I am not sure but it may Range in D, has the same 
> concept that C++ has on iterator, like InputIterator or 
> OutputIterator, since I realized that the output of [ filter ] 
> does not have RandomAccessRange so I can not use input[ 0 ]. 
> But I can use input.front().
>

If you want to learn the basis of the range concept and their 
link to C++ Iterators, you should definitively read Andrei's 
article on them in the InformIT magazine. Here is the link
http://www.informit.com/articles/printerfriendly/1407357
required read for every aspiring D programmer ;-)


More information about the Digitalmars-d-learn mailing list