COIN-OR::LEMON - Graph Library

Opened 10 years ago

Closed 10 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)

lemon_c11.h (700 bytes) - added by fabianh 10 years ago.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by fabianh

Attachment: lemon_c11.h added

comment:1 Changed 10 years ago by Alpar Juttner

Resolution: duplicate
Status: newclosed

Feature is actually under development, see #325

Note: See TracTickets for help on using tickets.