is characterized by two independent properties: a type and a value category. Each expression has some non-reference type, and each expression belongs to exactly one of the three primary value categories: prvalue, xvalue, and lvalue. a glvalue (“generalized” lvalue) is an expression whose ...
每一个C++表达式(带有运算对象[operand]的运算符、字面值[literal]、变量名等)都是由两个独立的属性(properties) ——— 型别[type]和值类型[value categories] ——— 来描述[characterized]的。每一个表达式都有某些非引用类型[non-reference type],并且每一个表达式都明确地属于下面三种基本值类型之一。 基本类...
Language Preprocessor−Comments ASCII chart Basic concepts Keywords Names(lookup) Types(fundamental types) Themainfunction Modules(C++20) Contracts(C++26) Expressions Value categories Evaluation order Operators(precedence) Conversions−Literals Constant expressions ...
value categories(lvalue, rvalue, glvalue, prvalue, xvalue(since C++11)) classify expressions by their values order of evaluationof arguments and subexpressions specify the order in which intermediate results are obtained Operators Common operators ...
Language Preprocessor−Comments ASCII chart Basic concepts Keywords Names(lookup) Types(fundamental types) Themainfunction Modules(C++20) Contracts(C++26) Expressions Value categories Evaluation order Operators(precedence) Conversions−Literals Constant expressions ...
Language Preprocessor−Comments ASCII chart Basic concepts Keywords Names(lookup) Types(fundamental types) Themainfunction Modules(C++20) Contracts(C++26) Expressions Value categories Evaluation order Operators(precedence) Conversions−Literals Constant expressions ...
glvalue(泛左值) = lvalue (传统意义上的左值)+ xvalue(消亡值,通过右值引用产生) rvalue (传统意义上的右值) = prvalue(纯右值) + xvalue Primary categories 1. lvalue(左值) The following expressions are lvalue expressions: the name of a variable or a function in scope, regardless of type, suc...
These are type categories defined by the core language. They are included here as concepts only for consistency. TriviallyCopyable (C++11) classe con banale copia, assegnazione e distruttore Original: class with trivial copy, assignment and destructor ...
locale categories forstd::setlocale The text has been machine-translated viaGoogle Translate. You can help to correct and verify the translation. Clickherefor instructions. (macro costante)[modifica] localeconv interroga dettagli di formattazione numerici e monetari del locale corrente ...
Language Preprocessor−Comments ASCII chart Basic concepts Keywords Names(lookup) Types(fundamental types) Themainfunction Modules(C++20) Contracts(C++26) Expressions Value categories Evaluation order Operators(precedence) Conversions−Literals Constant expressions ...