BioC++ core-0.7.0
The Modern C++ libraries for Bioinformatics.
 
Loading...
Searching...
No Matches
bio::meta::is_type_specialisation_of< source_t, target_template > Struct Template Reference

Determines whether a source_type is a specialisation of another template. More...

#include <bio/meta/type_traits/template_inspection.hpp>

+ Inheritance diagram for bio::meta::is_type_specialisation_of< source_t, target_template >:

Detailed Description

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_typeThe source type.
target_templateThe type template you wish to compare against (must take only types as template arguments).

Example

#include <vector>
int main()
{
using my_type = std::vector<int>;
if constexpr (bio::meta::is_type_specialisation_of_v<my_type, std::vector>) // std::vector without "<>" !
{
// ...
}
}
Provides various traits to inspect templates.
Provides bio::meta::type_list.

The documentation for this struct was generated from the following file: