Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Threads Module User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

8.3 Using Functors

To create a functor, you

The simplest way to do this is to use a global template function to create the body, such as the rwtMakeFunctor0() function in the following example.

Example 69 shows the minimal code required for building and using a functor.

Example 69: Creating and using a functor



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.