C++ Template Metaprogramming
Solutions to the exercises throughout the book
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
i
j
l
m
n
o
p
q
r
s
t
v
x
y
z
Functions
b
c
d
e
o
p
t
Variables
Typedefs
a
b
c
d
e
f
i
j
l
m
n
p
q
r
s
t
v
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
b
c
d
e
f
g
i
m
n
o
p
q
r
s
t
v
~
Functions
Variables
Typedefs
b
c
d
e
f
i
m
n
o
p
r
s
t
Files
File List
File Members
All
Functions
Variables
Typedefs
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Macros
Modules
Pages
Loading...
Searching...
No Matches
chapter-3-twice.hpp
Go to the documentation of this file.
1
// ===-- chapter-3/chapter-3-twice.hpp -------------------- -*- C++ -*- --=== //
9
#ifndef CHAPTER_3_TWICE
10
#define CHAPTER_3_TWICE
11
12
#include <boost/mpl/apply.hpp>
13
14
17
namespace
chapter3
{
18
27
template
<
typename
F,
typename
X>
28
struct
twice
: boost::mpl::apply<F, typename boost::mpl::apply<F, X>::type> { };
29
30
}
// namespace chapter3
31
32
#endif
// CHAPTER_3_TWICE
chapter3
Provide utilities availble to all Chapter 3 solutions.
Definition:
chapter-3-twice.hpp:17
chapter3::twice
Apply a metafunction to its own result.
Definition:
chapter-3-twice.hpp:28
chapter-3
chapter-3-twice.hpp
Generated on Fri Mar 8 2024 12:11:47 for C++ Template Metaprogramming by
1.9.6