VCCC  2024.05
VisualCamp Common C++ library
is_specialization.hpp
Go to the documentation of this file.
1 # /*
2 # * Created by YongGyu Lee on 2020/12/08.
3 # */
4 #
5 # ifndef VCCC_TYPE_TRAITS_IS_SPECIALIZATION_HPP
6 # define VCCC_TYPE_TRAITS_IS_SPECIALIZATION_HPP
7 #
8 # include <type_traits>
9 
10 namespace vccc {
11 
29 template<typename Test, template<typename...> class Ref>
30 struct is_specialization : std::false_type {};
31 
32 template<template<typename...> class Ref, typename... Args>
33 struct is_specialization<Ref<Args...>, Ref> : std::true_type {};
34 
36 
37 } // namespace vccc
38 
39 # endif // VCCC_TYPE_TRAITS_IS_SPECIALIZATION_HPP
Definition: directory.h:12
Definition: is_specialization.hpp:30