Visual Computing Library  devel
Loading...
Searching...
No Matches
vcl::IsDerivedFromSpecializationOf< T, Template > Struct Template Reference

Trait to check if a type is derived from a specialization of a given template. More...

#include <vclib/base/variadic_templates.h>

Static Public Attributes

static constexpr bool value
 

Static Private Member Functions

static std::false_type test (...)
 
template<typename... Args>
static std::true_type test (const Template< Args... > *)
 

Detailed Description

template<typename T, template< typename... > class Template>
struct vcl::IsDerivedFromSpecializationOf< T, Template >

Trait to check if a type is derived from a specialization of a given template.

This trait combines inheritance checking with template specialization detection.

Usage:

class MyVector : public std::vector<int> {};
"");
A class representing a box in N-dimensional space.
Definition box.h:46
Trait to check if a type is derived from a specialization of a given template.
Definition variadic_templates.h:267

Member Data Documentation

◆ value

template<typename T , template< typename... > class Template>
constexpr bool vcl::IsDerivedFromSpecializationOf< T, Template >::value
staticconstexpr
Initial value:
=
decltype(test(std::declval<std::remove_cvref_t<T>*>()))::value

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