lvalue
- Ejemplos
When applied to a pointer, the subscript expression is always an lvalue. | Cuando se aplica a un puntero, la expresión de subíndice siempre es un lvalue. |
Several non-lvalue C expressions became lvalue expressions in C++. | Varias expresiones no lvalue en C se convirtieron en expresiones lvalue en C++. |
When evaluated in left-hand mode an expression effectively gives an address (the left-hand value, or lvalue). | Cuando se evalúa en el modo de lado izquierda una expresión adquiere una dirección (el valor del lado izquierdo, o lvalue). |
In addition, if the lvalue is of volatile-qualified class type, a volatile copy-constructor is required to initialize the resulting rvalue temporary. | Además, si la expresión es de tipo clase, se requiere un constructor copia volátil para incializar el rvalue temporal resultante. |
Reference constant expression is an lvalue core constant expression that designates an object with static storage duration or a function. | Una expresión constante referencia es una expresión constante principal lvalue que designa un objeto con duración de almacenamiento estático o una función. |
An lvalue may be used to initialize an lvalue reference; this associates a new name with the object identified by the expression. | Se puede utilizar un lvalue para inicializar una referencia lvalue; esto asocia un nuevo nombre con el objeto identificado por la expresión. |
Even if the variable's type is rvalue reference, the expression consisting of its name is an lvalue expression; | Incluso si el tipo de variable es una referencia rvalue, la expresión que consiste en su nombre es una expresión lvalue; |
When applied to an array, the subscript expression is an lvalue if the array is an lvalue, and an xvalue if it isn't (since C++11). | Cuando se aplica a una matriz, la expresión de subíndice es un lvalue si la matriz es un lvalue, y un xvalue si no (desde C++11). |
Pointers to other incomplete types can be dereferenced, but the resulting lvalue can only be used in contexts that allow an lvalue of incomplete type, e.g. when initializing a reference. | Los punteros a otros tipos incompletos se pueden desreferenciar, pero el lvalue resultante solamente se puede usar en contextos que permiten un lvalue de tipo incompleto, por ejemplo, cuando se inicia una referencia. |
An rvalue may be used to initialize a const lvalue reference, in which case the lifetime of the object identified by the rvalue is extended until the scope of the reference ends. | Un rvalue se puede utilizar para inicializar una referencia lvalue constante, en cuyo caso el tiempo de vida del objeto identificado por el rvalue se extiende hasta el final del ámbito de la referencia. |
The operand of the built-in indirection operator must be pointer to object or a pointer to function, and the result is the lvalue referring to the pointer or function to which expr points. | El operando del operador de indirección integrado debe ser un puntero a objeto o puntero a función, y el resultado es el lvalue que se refiere al puntero o función al que apunta expr. |
Apply the lValue value to the output. | Aplicar el valor lValue a la salida. |
Lvalue to rvalue conversion (e.g. function call to a function that takes a value). | Conversión de lvalue to rvalue (por ejemplo: Llamada de función a una función que toma un valor) |
The lifetime of a temporary object may be extended by binding to a const lvalue reference or to an rvalue reference (since C++11), see reference initialization for details. | El tiempo de vida de un objeto temporal se puede ampliar vinculándolo a una referencia constante lValue o a una referencia rvalue (desde C++11), para más detalles ver inicialización de referencia. |
The direct assignment operator expects a modifiable lvalue as its left operand and an rvalue expression or a braced-init-list (since C++11) as its right operand, and returns an lvalue identifying the left operand after modification. | El operador de asignación directa espera un lvalue modificable como su operando izquierdo y una expresión rvalue o una lista de inicio entre paréntesis (desde C++11) como su operando derecho, y retorna un lvalue identificando el operando izquierdo después de la modificación. |
Same applies to function calls and lvalue accesses; argument types must be compatible with parameter types and lvalue expression type must be compatible with the object type that is accessed. | Lo mismo se aplica a las llamadas de función y a los accesos de valor; los tipos de argumento deben ser compatibles con los tipos de parámetros y el tipo de expresión de valor debe ser compatible con el tipo de objeto al que se accede. |
The value category of a function call expression is lvalue if the function returns an lvalue reference or an rvalue reference to function, is an xvalue if the function returns an rvalue reference to object, and is a prvalue otherwise. | La categoría de valor de una expresión de llamada a función es lvalue si la función devuelve una referencia lvalue o una referencia rvalue a función, es un xvalue si la función devuelve una referencia rvalue a objeto, y es un prvalue en otro caso. |
