Boost logo

Boost :

Subject: [boost] [concept] EqualityComparable metafunction
From: Lorenzo Caminiti (lorcaminiti_at_[hidden])
Date: 2011-09-05 18:30:53

Hello all,

What is the best way to check if a type T is EqualityComparable?

Essentially, I would need a is_equality_comparable<> metafunction:

struct mytype {};

is_equality_comparable<int>::value // true
is_equality_comparable<mytype>::value // false

Can I re-use the boost::EqualityComparable concept to implement
is_equality_comparable<>? Or, shall I just try to use
introspection-SFINAE techniques?

Thanks in advance.

Boost list run by bdawes at, gregod at, cpdaniel at, john at