The std::is_trivially_copy_assignable template of C++ STL is present in the <type_traits> header file. The std::is_trivially_copy_assignable template of C++ STL is used to check whether T is trivially copy assignable type or not. It return the boolean value true if T is trivially copy assignable type, otherwise return false.
template<class T> struct is_trivially_copy_assignable
Parameter: The template std::is_trivially_copy_assignable accepts a single parameter T(Trait class) to check whether T is trivially copy assignable type or not.
Return Value: The template std::is_trivially_copy_assignable returns a boolean variable as shown below:
- True: If the type T is a trivially copy assignable.
- False: If the type T is not a trivially copy assignable.
Below is the program to demonstrate std::is_trivially_copy_assignable in C++:
int? true X? true Y? false int? false
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- std::bad_array_new_length class in C++ with Examples
- std::bad_weak_ptr class in C++ with Examples
- C++ boost::dynamic_bitset Class with Examples
- std::uniform_real_ distribution class in C++ with Examples
- Difference between Base class and Derived class in C++
- How to convert a class to another class type in C++?
- std::any Class in C++
- Array class in C++
- std::string class in C++
- Structure vs class in C++
- std::hash class in C++ STL
- std:: valarray class in C++
- std::uniform_int_distribution class in C++
- How to implement our own Vector Class in C++?
- What all is inherited from parent class in C++?
- Friend class and function in C++
- Virtual base class in C++
- Can a C++ class have an object of self type?
- Why is the size of an empty class not zero in C++?
- Simulating final class in C++
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.