O'Reilly logo

Boost C++ Application Development Cookbook by Antony Polukhin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Splitting tuples

This recipe will show a tiny piece of the Boost.Fusion library's abilities. We'll be splitting a single tuple into two tuples, one with arithmetic types and the other with all the other types.

Splitting tuples

Getting ready

This recipe requires knowledge of Boost.MPL, placeholders, and Boost.Tuple. Read the following recipes from Chapter 1, Starting to Write Your Application, Combining multiple values into one for more information about tuples and Reordering parameters of a function for information about placeholders. Reading this chapter from the beginning is recommended.

How to do it...

This is possibly one of the hardest recipes in this chapter. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required