C++ Template Metaprogramming
Solutions to the exercises throughout the book
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