C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
exercise_6_0::find_smaller< T1, T2 > Struct Template Reference

Find the type with a smaller size in bytes. More...

#include <exercise-6-0.hpp>

Inheritance diagram for exercise_6_0::find_smaller< T1, T2 >:

Detailed Description

template<typename T1, typename T2>
struct exercise_6_0::find_smaller< T1, T2 >

Find the type with a smaller size in bytes.

If sizeof T1 < sizeof T2, this returns T1. Otherwise, it returns T2.

Template Parameters
Thefirst type to examine.
Thesecond type to examine.
Todo:
I wonder if there's an MPL function to measure sizes...

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


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