February 2004 Meeting
Return to Meetings

January 2004 Meeting

Topic:

FOR_EACH

Speaker:

Eric Niebler

When:

Wednesday, January 14, 2004
Presentation @ 7:00pm

Where:

Avaya Corporation
6464 185th Avenue Northeast
Redmond, Washington 98052
[ Map ]

Description:

Writing loops over sequences is harder in C++ than in other
languages, many of which provide a dedicated "foreach" looping
construct.  In this talk, Eric describes how to implement and use a
generic, type-safe and extensible foreach construct in C++ with the help
of the preprocessor and some sneaky template tricks.  The techniques,
first presented in the Nov. C/C++ Users' Journal, are extended to work
with STL containers.  Time permitting, Eric will describe why
std::for_each doesn't cut it, and why we need a language extension.

About the Speaker:

Eric is an independent software consultant currently working with
Dave Abrahams and Boost Consulting. He is a former employee of Microsoft
Research and Visual C++, and his writings about C++ have been published
in the C/C++ User's Journal and MSDN Magazine.  When he's not writing
C++ for money, Eric has been known to write C++ for fun.

Click here to download the slides and source code from the presentation
 
 
 

© 2003-09 Northwest C++ Users Group (NWCPP) | Contact | Privacy Policy | Credits | EMail