C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
chapter3::twice< F, X > Struct Template Reference

Apply a metafunction to its own result. More...

#include <chapter-3-twice.hpp>

Inheritance diagram for chapter3::twice< F, X >:

Detailed Description

template<typename F, typename X>
struct chapter3::twice< F, X >

Apply a metafunction to its own result.

In other words, this will perform F(F(X)).

Template Parameters
FThe unary metafunction to apply.
XThe initial value to send to the metafunction.

Definition at line 28 of file chapter-3-twice.hpp.


The documentation for this struct was generated from the following file: