Ticket #183 (closed todo: done)

Opened 3 years ago

Last modified 2 years ago

util::for_each calling member functions

Reported by: ichthyo Owned by: ichthyo
Priority: normal Milestone: 0integration
Component: lumiera Keywords: lib design
Cc: Blocked By:
Blocking: #478

Description

that's a long-standing inconvenience: create an overload for util::for_each accepting a member function pointer, thus allowing to invoke a given member function for each object in a collection.

Change History

comment:1 Changed 2 years ago by ichthyo

  • Blocking 283 added

comment:2 Changed 2 years ago by ichthyo

  • Keywords lib design added
  • Priority changed from lesser to normal

frequently encountered nice-to-have

comment:3 Changed 2 years ago by ichthyo

  • Blocking 478 added; 283 removed

comment:4 Changed 2 years ago by ichthyo

  • Owner set to ichthyo
  • Status changed from new to accepted

used it to code up the PlacementIndex self-check, so it looks like I have to bite the bullet...

comment:5 Changed 2 years ago by ichthyo

  • Status changed from accepted to closed
  • Resolution set to done

I feared this would get complicated -- but surprise -- it was dead simple. <tr1::functional> rocks!

Note: See TracTickets for help on using tickets.