template <class T> struct is_rvalue_reference;
123456789101112
// is_rvalue_reference example #include <iostream> #include <type_traits> int main() { std::cout << std::boolalpha; std::cout << "is_rvalue_reference:" << std::endl; std::cout << "int: " << std::is_rvalue_reference<int>::value << std::endl; std::cout << "int&: " << std::is_rvalue_reference<int&>::value << std::endl; std::cout << "int&&: " << std::is_rvalue_reference<int&&>::value << std::endl; return 0; }
is_rvalue_reference: int: false int&: false int&&: true