template<typename T, typename U, typename>
struct boost::hana::has_common< T, U, typename >
Metafunction returning whether two data types share a common data type.
Given two data types T
and U
, this metafunction simply returns whether common<T, U>::type
is well-formed.
Example
static_assert(hana::has_common<int, float>{}, "");
static_assert(!hana::has_common<void, float>{}, "");
int main() { }
Inherits false_type.