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