RE: [boost] MPL fold algorithms

2002-11-15 Thread Aleksey Gurtovoy
Gennadiy Rozental wrote: > Would it correct to state that following pseudo-code properly > reflect the essence of the appropriate algorithms: > > iter_fold( sequence s, state st, binary_operator op ) { >iterator it = s.begin(); > >while( it != s.end() ) >st = op( st, it ); r

[boost] MPL fold algorithms

2002-11-15 Thread Gennadiy Rozental
Hi, Would it correct to state that following pseudo-code properly reflect the essence of the appropriate algorithms: iter_fold( sequence s, state st, binary_operator op ) { iterator it = s.begin(); while( it != s.end() ) st = op( st, it ); } fold( sequence s, state st, binary_opera