
Excellent! I already use it. Thank you. On 7/15/07, shunsuke <pstade.mb@gmail.com> wrote:
Hi, all
A new version of Oven, a range library proposal implementation, has been uploaded to Boost.Vault/Algorithm.
The file: http://tinyurl.com/2axp2l
Range Library Proposal: http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2005/n1871.html
An example "infinite sequence of factorials":
void test() { BOOST_AUTO(factorials, expression(counting(1, max_count)|scanned(1, regular(lambda::_1 * lambda::_2))) );
int const answer[] = { 1,1,2,6,24,120,720,5040,40320,362880 }; BOOST_CHECK( equals(factorials|taken(10), answer) ); }
This library is highly preliminary, but moderately tested. Any feedback appreciated.
Regards,
-- Shunsuke Sogame
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost