8 May
2014
8 May
'14
12:17 p.m.
On May 8, 2014, at 6:43 AM, Jens Müller
My current idea is actually a sort of proxy output iterator which keeps a counter of "pending" indeterminate tribools and flushes them to the proxied output iterator once their status becomes known. It should also automatically flush in it's destructor.
Then I could just use std::copy with a std::back_inserter in order to convert a sequence including indeterminate values into a sequence just containing bools.
Useful?
Whether it's generally useful depends on the kinds of use cases it addresses. It's an intriguing idea, but I haven't yet imagined an application in which I'd want that. Sorry, limited imagination... please suggest a few?