#include <Rodin/Utility/IsSpecialization.h>
template<class Test, template<class...> class Ref>
IsSpecialization struct
Type trait to check if a type is a specialization of a given template.
| Template parameters | |
|---|---|
| Ref | The reference template to check against. |
The primary template handles the case where Test is not a specialization of the Ref template.
Example usage:
static_assert(IsSpecialization<std::vector<int>, std::vector>::Value == true); static_assert(IsSpecialization<int, std::vector>::Value == false);