Re:An Idiot's Guide to C++ Templates - Part 1
by X-Istence on Tuesday April 23, 2013 @12:52PM
(#5596277)
You can create your own type of iterator that when dereferenced spits out the next number/item, So long as your "end" iterator never matches your "current" iterator it will continue going on. Your "done" function is when "current" and "end" match. "next()" is "++current".
[ Parent
| on HN ]
There are no comments on this comment yet.