C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
anonymous_namespace{chapter-6.cpp}::test_6_0 Namespace Reference

Tests functionality from Exercise 6-0. More...

Functions

 BOOST_STATIC_ASSERT ((boost::is_same< smallest< boost::mpl::vector< int[2], char, double & > >::type, char >::value))
 
 BOOST_STATIC_ASSERT ((boost::is_same< smallest< boost::mpl::vector< int, char[20], double & > >::type, int >::value))
 
 BOOST_STATIC_ASSERT ((boost::is_same< smallest< boost::mpl::vector<> >::type, no_type >::value))
 

Detailed Description

Tests functionality from Exercise 6-0.

Function Documentation

◆ BOOST_STATIC_ASSERT() [1/3]

anonymous_namespace{chapter-6.cpp}::test_6_0::BOOST_STATIC_ASSERT ( (boost::is_same< smallest< boost::mpl::vector< int, char[20], double & > >::type, int >::value)  )

◆ BOOST_STATIC_ASSERT() [2/3]

anonymous_namespace{chapter-6.cpp}::test_6_0::BOOST_STATIC_ASSERT ( (boost::is_same< smallest< boost::mpl::vector< int[2], char, double & > >::type, char >::value)  )

◆ BOOST_STATIC_ASSERT() [3/3]

anonymous_namespace{chapter-6.cpp}::test_6_0::BOOST_STATIC_ASSERT ( (boost::is_same< smallest< boost::mpl::vector<> >::type, no_type >::value)  )