C++ Template Metaprogramming
Solutions to the exercises throughout the book
All Classes Namespaces Files Functions Variables Typedefs Macros Modules Pages
exercise_6_0::smallest< S > Struct Template Reference

This is the metafunction that returns the smallest type in the sequence. More...

#include <exercise-6-0.hpp>

Inheritance diagram for exercise_6_0::smallest< S >:

Detailed Description

template<typename S>
struct exercise_6_0::smallest< S >

This is the metafunction that returns the smallest type in the sequence.

This could be improved to create a vector when there are multiple types of the same size, all of which are smallest.

Template Parameters
SThe set of types to examine for smallest size.

Definition at line 104 of file exercise-6-0.hpp.


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