cgv
Loading...
Searching...
No Matches
instance_of.h
1#pragma once
2
3#include <type_traits>
4
5namespace cgv {
6 namespace type {
7 namespace traits {
11 template<class T, template<class...> class Template>
12 /*inline*/ constexpr bool is_instance_of_v = std::false_type{};
13
14 template<template<class...> class T, class ...TemplateArgs>
15 /*inline*/ constexpr bool is_instance_of_v<T<TemplateArgs...>, T> = std::true_type{};
16
17 template<class T, template<class...> class Template>
18 struct is_instance_of : std::bool_constant<is_instance_of_v<T, Template>> {};
19 }
20 }
21}
this header is dependency free
Definition print.h:11