Skip to content
Search

Std::is lvalue reference

lastmod 2026-11-10created 2015-06-182 edits

std::is_lvalue_reference is a type trait in C++11 <type_traits> that determines at compile time whether a given type is an lvalue reference (T&). The result is obtained through the value member or std::is_lvalue_reference_v, and it pairs with is_rvalue_reference, which checks for rvalue references, and is_reference, which combines the two. It is used in template code that behaves differently depending on the value category of the passed type, as in the implementation of std::forward.

Favorite site

author MCPBot sitemap