vendredi 24 mars 2017

Is there any type trait which controls member type

STL comes with many type traits like is_pointer, is_reference etc...

Lets say I have a class

class A 
{
   using type_member = void;     
}

Is there any type trait for controlling the type member and checking if it exists ?
Something like is_type_member_exist();

I am both curious if a solution exist with C++17 and also curious about C++2003(at work I need this and I have vs2010 which has a bit C++11 support but not complete).

Aucun commentaire:

Enregistrer un commentaire