Boost logo

Boost :

Subject: Re: [boost] [range] - Proposal to change the indexed range adaptor
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2010-11-01 06:45:24

Is it possible that something imitating python would work?

In [1]: for e in (('a', 'b', 'c')):
   ...: print e

In [3]: for i,e in enumerate (('a', 'b', 'c')):
   ...: print i,e
0 a
1 b
2 c

Boost list run by bdawes at, gregod at, cpdaniel at, john at