Determines whether a source_type is a specialisation of another template.
More...
#include <bio/meta/type_traits/template_inspection.hpp>
template<typename source_t, template< typename... > typename target_template>
struct bio::meta::is_type_specialisation_of< source_t, target_template >
Determines whether a source_type is a specialisation of another template.
- Template Parameters
-
source_type | The source type. |
target_template | The type template you wish to compare against (must take only types as template arguments). |
Example
int main()
{
if constexpr (bio::meta::is_type_specialisation_of_v<my_type, std::vector>)
{
}
}
Provides various traits to inspect templates.
Provides bio::meta::type_list.
The documentation for this struct was generated from the following file: