Unified way for checking the existence of member functions, free functions and operators
问题 I have found several several questions on here that dealt with checking if either a member function, a free function or an operator exists for a given type. The proposed solutions solve the problem at hand but each uses a different approach. I am trying to find a way to deal with each of those problems in an identical or at least similar fashion. Checking if a Type C has a member func works: template<typename, typename T> struct has_member { static_assert( std::integral_constant<T, false>: