#include <iostream> using namespace std; class A { public: A() { } //virtual
~A() = 0; private: int a; }; int main() { cout << boolalpha; //Class Without any members
virtual Member function or virtual base class cout << is_empty<A>::value << endl; //Class
With a (derived)virtual Member function cout << is_polymorphic<A>::value << endl;
// abstract class ( Contains at least one pure virtual function ) cout << is_abstract<A>::value << endl; //Class Contains a virtual destructor cout
<< has_virtual_destructor<A>::value << endl;//Class Can I use the default constructor ( Must be abstract class false) cout
<< is_default_constructible<A>::value << endl;//Class Can copy constructors be used ( Abstract class must be false)
cout << is_copy_constructible<A>::value << endl; //Class Can I use the move constructor ( Abstract class must be false)
cout << is_move_constructible<A>::value << endl; //Class Can I use the copy assignment function cout <<
is_copy_assignable<A>::value << endl;//Class Can I use the moving assignment function cout <<
is_move_assignable<A>::value << endl;//Class Can default constructors be synthesized cout <<
is_trivially_default_constructible<A>::value << endl;//Class Can copy constructors be synthesized cout <<
is_trivially_copy_constructible<A>::value << endl;//Class Can mobile constructors be synthesized cout <<
is_trivially_move_constructible<A>::value << endl;//Class Can copy assignment constructors be synthesized cout <<
is_trivially_copy_assignable<A>::value << endl;//Class Can move assignment constructors be synthesized cout <<
is_trivially_move_assignable<A>::value << endl;//Class Can I use the default constructor without throwing an exception cout <<
is_nothrow_default_constructible<A>::value << endl;//Class Can I use the copy constructor without throwing an exception cout
<< is_nothrow_copy_constructible<A>::value << endl;//Class Can I use the move constructor without throwing an exception
cout << is_nothrow_move_constructible<A>::value << endl; //Class
Can I use the copy assignment function without throwing an exception cout << is_nothrow_copy_assignable<A>::value << endl; //Class
Can I use the move assignment function without throwing an exception cout << is_nothrow_move_assignable<A>::value << endl; //Class
Can destructors be used without throwing exceptions cout << is_nothrow_destructible<A>::value << endl; system("pause"
);return 0; }

Technology
©2019-2020 Toolsou All rights reserved,
Final review of database : Summary of comprehensive application questions Laplance operator ( Second derivative ) Simple learning of computer composition principle pyqt Button call python program _PyQt: Link button to function in program How much can you go up once you change jobs ? Today, I saw the ceiling of job hopping python in str Function usage _python in str Usage Summary of built-in functions MySQL trigger web The server nginx---linux Installation and deployment C++ Chapter V polymorphism exercises :( It's coming to an end )python Check built-in functions , How to check python Built in function