Is it possible to write a type trait that checks if a type is a specific type with an addition?

前端 未结 0 1572
挽巷
挽巷 2021-01-30 15:15

I have a type:

struct A {}

template
constexpr bool is_A_v = false;

template<>
constexpr bool is_A_v = true; // here I don\'t kn         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题