Opened 11 years ago
Closed 11 years ago
#539 closed enhancement (duplicate)
Support for C++11 range-based for
| Reported by: | fabianh | Owned by: | Alpar Juttner | 
|---|---|---|---|
| Priority: | minor | Milestone: | LEMON 1.4 release | 
| Component: | core | Version: | hg main | 
| Keywords: | iterator for C++11 | Cc: | |
| Revision id: | 
Description
As
for(NodeIt n(g);n!=INVALID;++n)
is a very common construct, it would be convenient to have access to the new range-based for loop, which turns the above into the very natural
for(Node n: g)
I don't have a good understanding of the library structure, so the solution I am proposing is not very generic (see attached file).
Attachments (1)
Change History (2)
Changed 11 years ago by
| Attachment: | lemon_c11.h added | 
|---|
comment:1 Changed 11 years ago by
| Resolution: | → duplicate | 
|---|---|
| Status: | new → closed | 
Note: See
        TracTickets for help on using
        tickets.
    

Feature is actually under development, see #325