Espacios de nombres
Variantes
Acciones

Other operators

De cppreference.com
< cpp‎ | language

 
 
Lenguaje C++
Los temas generales
Original:
General topics
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Control de flujo
Original:
Flow control
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Sentencias condicionales ejecución
Original:
Conditional execution statements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Instrucciones de iteración
Original:
Iteration statements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Ir declaraciones
Original:
Jump statements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Funciones
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
declaración de la función
lambda declaración de la función
función de plantilla
especificador inline
especificaciones de excepción (obsoleto)
noexcept especificador (C++11)
Excepciones
Original:
Exceptions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Los espacios de nombres
Original:
Namespaces
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Tipos
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
decltype specifier (C++11)
Los especificadores
Original:
Specifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
cv especificadores
almacenamiento duración especificadores
constexpr especificador (C++11)
auto especificador (C++11)
alignas especificador (C++11)
Inicialización
Original:
Initialization
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Los literales
Original:
Literals
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Expresiones
Original:
Expressions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
representaciones alternativas
Utilidades
Original:
Utilities
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Tipos
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
typedef declaration
alias de tipo de declaración (C++11)
atributos (C++11)
Lanza
Original:
Casts
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
conversiones implícitas
const_cast conversion
static_cast conversion
dynamic_cast conversion
reinterpret_cast conversion
C-cast estilo y funcional
De asignación de memoria
Original:
Memory allocation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Clases
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Clase propiedades específicas de la función
Original:
Class-specific function properties
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Funciones especiales miembro
Original:
Special member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Plantillas
Original:
Templates
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
clase de plantilla
función de plantilla
plantilla de especialización
paquetes de parámetros (C++11)
Varios
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Montaje en línea
 
Operator name Syntax Over​load​able Prototype examples (for class T)
Inside class definition Outside class definition
function call a(a1, a2) Yes R T::operator()(Arg1 &a1, Arg2 &a2, ... ...); N/A
comma a, b Yes T2& T::operator,(T2 &b); T2& operator,(const T &a, T2 &b);
conversion (type) a Yes operator type() N/A
ternary conditional a ? b : c No N/A N/A

Contenido

[editar] Explicación

Llamada' función semántica del operador proporciona funciones para cualquier objeto .
Original:
function call operator provides function semantics for any object.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Conversión' operador convierte dado tipo en otro tipo. El nombre del operador debe ser el mismo que el tipo destinado a ser devuelto .
Original:
conversion operator converts given type to another type. The name of the operator must be the same as the type intended to be returned.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
' Operador ternario condicional comprueba el valor booleano de la expresión primera y reemplaza cláusula completo del operador con la segunda o la tercera expresión en función del valor resultante .
Original:
ternary conditional operator checks the boolean value of the first expression and replaces entire operator clause with the second or the third expression depending on the resulting value.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Construido en función de operador llamada

Una expresión de llamada a la función, tales como E(A1, A2, A3), consta de una expresión que designa la función, E, seguido de una lista posiblemente vacío de A1, A2, A3, ... expresiones entre paréntesis .
Original:
A function call expression, such as E(A1, A2, A3), consists of an expression that names the function, E, followed by a possibly empty list of expressions A1, A2, A3, ..., in parentheses.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La expresión que da nombre a la función puede ser
Original:
The expression that names the function can be
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
a)
lvalue expresión que hace referencia a una función
Original:
lvalue expression that refers to a function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
b)
puntero a la función
Original:
pointer to function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
c)
clase de acceso a miembros expresión explícita de que selecciona una función miembro
Original:
explicit clase de acceso a miembros expression that selects a member function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
d)
miembro implícito clase de acceso expresión, por ejemplo, Nombre del miembro de función que se utiliza dentro de otra función miembro .
Original:
implicit class member access expression, e.g. member function name used within another member function.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La función (o miembro) nombre especificado por E puede sobrecargar, sobrecarga resolución reglas utilizadas para decidir qué sobrecarga se va a llamar .
Original:
The function (or member) name specified by E can be overloaded, sobrecarga resolución rules used to decide which overload is to be called.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Si E especifica una función miembro, puede ser virtual, en cuyo caso el socavador final de esta función se llama, usando distribución dinámica en tiempo de ejecución .
Original:
If E specifies a member function, it may be virtual, in which case the final overrider of that function will be called, using dynamic dispatch at runtime.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Para llamar a la función, todas las expresiones A1, A2, A3, etc, siempre y cuando los argumentos se evalúan en orden arbitrario, y cada parámetro de la función se inicializa con su correspondiente argumento después conversión implícita si es necesario. Si se realiza la llamada a una función miembro, entonces el puntero this a objeto actual se convierte como por conversión explícita al puntero this esperado por la función. La inicialización y destrucción de cada parámetro se produce en el contexto de la llamada, lo que significa, por ejemplo, que si un parámetro de constructor produce una excepción, los controladores de excepciones definidas dentro de la función, así como un módulo de función a intentar, no se consideran . Si la función es una función variadic, promociones defecto argumento se aplican a todos los argumentos que coinciden con el parámetro puntos suspensivos .
Original:
To call the function, all expressions A1, A2, A3, etc, provided as arguments are evaluated in arbitrary order, and each function parameter is initialized with its corresponding argument after conversión implícita if neccessary. If the call is made to a member function, then the this pointer to current object is converted as if by explicit cast to the this pointer expected by the function. The initialization and destruction of each parameter occurs in the context of the caller, which means, for example, that if constructor of a parameter throws an exception, the exception handlers defined within the function, even as a function-try block, are not considered. If the function is a variadic function, promociones defecto argumento are applied to all arguments matched by the ellipsis parameter.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
El tipo de retorno de una expresión de llamada a la función es el tipo de retorno de la función elegida, decidió usar vinculante estáticos (ignorando el virtual) palabra clave), aunque la función principal que se llama en realidad devuelve un tipo diferente. Esto permite que las funciones primordiales para volver punteros o referencias a las clases que se derivan del tipo de retorno devuelto por la función de base, es decir, C + + soportes tipos covariantes retorno). Si E especifica un destructor, el tipo de retorno es void .
Original:
The return type of a function call expression is the return type of the chosen function, decided using static binding (ignoring the virtual) keyword), even if the overriding function that's actually called returns a different type. This allows the overriding functions to return pointers or references to classes that are derived from the return type returned by the base function, i.e. C++ supports tipos covariantes retorno). If E specifies a destructor, the return type is void.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La categoría de valor de una expresión de llamada a función es lvalue si la función devuelve una referencia de valor-i o una referencia de valor p para funcionar, es un xValue si la función devuelve un valor p de referencia a objeto, y es un prvalue lo contrario. Si la expresión es una llamada a la función prvalue de tipo de objeto, debe tener un tipo completo, excepto cuando se utiliza como operando a decltype .
Original:
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. If the function call expression is a prvalue of object type, it must have complete type except when used as an operand to decltype.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Expresión de la función llamada es similar en sintaxis a T() valor de inicialización, a la expresión función de estilo fundido T(A1), y para dirigir la inicialización de una T(A1, A2, A3, ...) temporal, donde T es el nombre de un tipo .
Original:
Function call expression is similar in syntax to value initialization T(), to función de estilo fundido expression T(A1), and to direct initialization of a temporary T(A1, A2, A3, ...), where T is the name of a type.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
#include <cstdio>
struct S
{
    int f1(double d) {
        printf("%f \n", d); // variable argument function call
    }
    int f2() {
        f1(7); // member function call, same as this->f1()
               // integer argument converted to double
    }
};
void f() {
   puts("function called"); // function call
}
int main()
{
    f(); // function call
    S s;
    s.f2(); // member function call
}

Output:

function called
7.000000

[editar] Construido en el operador coma

En una expresión E1, E2 coma, el E1 expresión es evaluada, su valor de retorno se descarta, y sus efectos secundarios se completan antes de la evaluación de la expresión E2 comienza (tenga en cuenta que esta capacidad se pierde con la definida por el usuario operator,) .
Original:
In a comma expression E1, E2, the expression E1 is evaluated, its return value is discarded, and its side effects are completed before evaluation of the expression E2 begins (note that this ability is lost with user-defined operator,).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
El tipo de retorno y la categoría de valor del operador coma son exactamente el tipo de retorno y la categoría de valor del segundo operando, E2 .
Original:
The return type and value category of the comma operator are exactly the return type and the value category of the second operand, E2.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La coma en varios separados por comas listas, como listas de argumentos de función (f(a, b, c)), listas de inicializadores int a[] = {1,2,3}, o declaraciones de inicialización (int i, j;) no es el operador de coma. Si el operador de coma necesita ser utilizado en este contexto, se ha de paréntesis: f(a, (n++, n+b), c)
Original:
The comma in various comma-separated lists, such as function argument lists (f(a, b, c)), initializer lists int a[] = {1,2,3}, or initialization statements (int i, j;) is not the comma operator. If the comma operator needs to be used in that context, it has to be parenthesized: f(a, (n++, n+b), c)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
#include <iostream>
int main()
{
    int n = 1;
    int m = (++n, std::cout << "n = " << n << '\n', ++n, 2*n);
    std::cout << "m = " << (++m, m) << '\n';
}

Output:

n = 2
m = 7

[editar] Construido en operador de conversión

El (T)expr conversión incorporada operador evalúa la expresión expr y realiza conversión explícita al tipo T .
Original:
The built-in conversion operator (T)expr evaluates the expression expr and performs explicit cast to the type T.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Ver conversión explícita para una descripción detallada .
Original:
See conversión explícita for detailed description.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Operador condicional

Por cada par de promover aritmética tipos L y R y para cada tipo P, donde P es un puntero, puntero a miembro, o tipo de enumeración ámbito, las firmas de función siguientes participar en la resolución de sobrecarga:
Original:
For every pair of promoted arithmetic types L and R and for every type P, where P is a pointer, pointer-to-member, or scoped enumeration type, the following function signatures participate in overload resolution:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
LR operator?:(bool, L, R );
T operator?:(bool, T, T );
donde LR es el resultado de conversiones aritméticas habituales realiza en L y R. El operador ":" no se puede sobrecargar, estas firmas de función sólo existe para el propósito de la resolución de sobrecarga .
Original:
where LR is the result of conversiones aritméticas habituales performed on L and R. The operator “?:” cannot be overloaded, these function signatures only exist for the purpose of overload resolution.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
El primer operando del operador condicional se evalúa y contextualmente convertido a bool. Después de que tanto el valor de evaluación y todos los efectos secundarios del primer operando se han completado, si el resultado era true, el segundo operando es evaluado. Si el resultado fue false, el tercer operando se evalúa .
Original:
The first operand of the conditional operator is evaluated and contextualmente convertido to bool. After both the value evaluation and all side effects of the first operand are completed, if the result was true, the second operand is evaluated. If the result was false, the third operand is evaluated.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
En el E1 ? E2 : E3 expresión condicional, las siguientes reglas y limitaciones:
Original:
In the conditional expression E1 ? E2 : E3, the following rules and limitations apply:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Si bien E2 o E3 (o ambos) es un throw-expresión, el resultado del operador condicional es el resultado de la otra (no tirar) la expresión, y es un prvalue (después de valori-a-valor p, matriz a puntero , o función a puntero de conversión). Dicho operador condicional se utiliza comúnmente en programación constexpr .
Original:
If either E2 or E3 (or both) is a throw-expression, the result of the conditional operator is the result of the other (not throw) expression, and is a prvalue (after lvalue-to-rvalue, array-to-pointer, or function-to-pointer conversion). Such conditional operator is commonly used in programación constexpr.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Si tanto E2 o E3 son de void tipo, el resultado es un tipo de prvalue void .
Original:
If both E2 or E3 are of type void, the result is a prvalue of type void.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
E2 y E3 tienen diferentes tipos de clase (o del mismo tipo con diferentes cv-calificación) y la categoría de valor igual. En este caso, se realiza un intento para convertir uno (y sólo uno) de los operandos al tipo de la otra, de la siguiente manera:
Original:
E2 and E3 have different class types (or same type with different cv-qualification) and the same value category. In this case, an attempt is made to convert one (and only one) of the operands to the type of the other, as follows:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
a)
Si son lvalues, una conversión implícita del tipo de referencia lvalue se intenta
Original:
If they are lvalues, an implicit conversion to the lvalue reference type is attempted
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
b)
Si son XValues, una conversión implícita del tipo de referencia rvalue se intenta
Original:
If they are xvalues, an implicit conversion to the rvalue reference type is attempted
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
c)
Si son rvalues, y tienen la misma clase base (o uno es una clase base de la otra), el operando (s) se convierte en el tipo de base por copia a inicializar un objeto temporal del tipo base .
Original:
If they are rvalues, and have the same base class (or one is a base class of the other), the operand(s) are converted to the base type by copy-initializing a temporary object of the base type.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
d)
Si son rvalues, y no tienen ninguna clase base común, entonces una conversión implícita se intentó el tipo del otro operando .
Original:
If they are rvalues, and have no common base class, then an implicit conversion is attempted to the type of the other operand.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
4)
Tanto E2 o E3 glvalues ​​son del mismo tipo. En este caso, el resultado tiene el mismo tipo y categoría de valor .
Original:
Both E2 or E3 are glvalues of the same type. In this case, the result has the same type and value category.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
5)
Si todos los casos mencionados anteriormente fracasan, y, o bien E2 o E3 tiene el tipo de clase: .. la resolución de sobrecarga se intenta seleccionar la mejor conversión de un tipo a otro
Original:
If all cases listed above fail, and either E2 or E3 has class type: overload resolution is attempted to select the best conversion from one type to the other.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
6)
Si todos los casos enumerados precedentemente no, y ni E2 ni tener E3 tipo de clase: en primer lugar, valori-a-valor-, array-a-puntero y la función de puntero a conversiones se aplican. Entonces,
Original:
If all cases listed above fail, and neither E2 nor E3 have class type: first, lvalue-to-rvalue, array-to-pointer, and function-to-pointer conversions are applied. Then,
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
a)
si tanto E2 y E3 ahora tienen el mismo tipo, el resultado es un prvalue temporal de ese tipo, copy-inicializado desde cualquier operando fue seleccionada luego de evaluar E1
Original:
if both E2 and E3 now have the same type, the result is a prvalue temporary of that type, copy-initialized from whatever operand was selected after evaluating E1
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
b)
E2 y E3 tener tipo aritmético o enumeración: conversiones aritméticas habituales se aplican para llevarlos a tipo común, ese tipo es el resultado .
Original:
E2 and E3 have arithmetic or enumeration type: usual arithmetic conversions are applied to bring them to common type, that type is the result.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
c)
E2 y E3 son punteros, o un puntero y una constante nulo o un puntero nulo constantes tanto, uno de los cuales es un std::nullptr_t, a continuación, las conversiones de puntero y convrsions calificación se aplican para llevarlos a tipo común, que es el tipo de resultado .
Original:
E2 and E3 are pointers, or a pointer and a null constant, or a both null pointer constants, one of which is a std::nullptr_t, then pointer conversions and qualification convrsions are applied to bring them to common type, that type is the result.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
d)
E2 y E3 son punteros a miembros, o un puntero a miembro y un nulo constante: entonces puntero a miembro conversiones y convrsions calificación se aplican para llevarlos a tipo común, que es el tipo
Original:
E2 and E3 are pointers to members, or a pointer to member and a null constant: then pointer-to-member conversions and qualification convrsions are applied to bring them to common type, that type is the
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
#include <string>
#include <stdexcept>
struct Node
{
    Node* next;
    int data;
    // deep-copying copy constructor
    Node(const Node& other)
      : next(other.next ? new Node(*other.next) : NULL)
      , data(other.data)
    {}
    Node(int d) : next(NULL), data(d) {}
    ~Node() { delete next ; }
};
int main()
{   
    // simple rvalue example
    int n = 1>2 ? 10 : 11;  // 1>2 is false, so n = 11
    // simple lvalue example
    int m = 10; 
    (n == m ? n : m) = 7; // n == m is false, so m = 7
    // throw example
    std::string str = 2+2==4 ? "ok" : throw std::logic_error("2+2 != 4");
}


[editar] Biblioteca estándar

Muchas clases de la librería estándar anular operator() para ser utilizado como objetos de función .
Original:
Many classes in the standard library override operator() to be used as function objects.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Plantilla:cpp/utility/functional/function/dcl list operator()
Elimina el objeto o matriz
Original:
deletes the object or array
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::default_delete función)
compara sus argumentos con base propietarios semántica
Original:
compares its arguments using owner-based semantics
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función)
devuelve la suma de dos argumentos
Original:
returns the sum of two arguments
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::plus función) [edit]
devuelve la diferencia entre dos argumentos
Original:
returns the difference between two arguments
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::minus función) [edit]
devuelve el producto de dos argumentos
Original:
returns the product of two arguments
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::multiplies función) [edit]
devuelve el resultado de la división del primer argumento por el segundo argumento
Original:
returns the result of the division of the first argument by the second argument
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::divides función) [edit]
devuelve el resto de la división del primer argumento por el segundo argumento
Original:
returns the remainder from the division of the first argument by the second argument
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::modulus función) [edit]
devuelve la negación del argumento
Original:
returns the negation of the argument
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::negate función) [edit]
Comprueba si los argumentos son iguales
Original:
checks if the arguments are equal
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::equal_to función) [edit]
Comprueba si los argumentos no son iguales
Original:
checks if the arguments are not equal
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::not_equal_to función) [edit]
Comprueba si el primer argumento es mayor que el segundo
Original:
checks if the first argument is greater than the second
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::greater función) [edit]
comprueba si el primer argumento es menor que el segundo
Original:
checks if the first argument is less than the second
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::less función) [edit]
Comprueba si el primer argumento es mayor o igual que el segundo
Original:
checks if the first argument is greater than or equal to the second
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::greater_equal función) [edit]
Comprueba si el primer argumento es menor o igual que la segunda
Original:
checks if the first argument is less than or equal to the second
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::less_equal función) [edit]
devuelve el AND lógico de los dos argumentos
Original:
returns the logical AND of the two arguments
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::logical_and función) [edit]
devuelve el OR lógico de los dos argumentos
Original:
returns the logical OR of the two arguments
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::logical_or función) [edit]
devuelve el NO lógico del argumento
Original:
returns the logical NOT of the argument
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::logical_not función) [edit]
returns the result of bitwise AND of two arguments
(miembro público of std::bit_and función) [edit]
Devuelve el resultado del operador OR de dos argumentos
Original:
returns the result of bitwise OR of two arguments
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::bit_or función) [edit]
devuelve el resultado de XOR bit a bit de dos argumentos
Original:
returns the result of bitwise XOR of two arguments
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::bit_xor función) [edit]
devuelve el complemento lógico del resultado de una llamada al predicado almacenado
Original:
returns the logical complement of the result of a call to the stored predicate
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::unary_negate función) [edit]
devuelve el complemento lógico del resultado de una llamada al predicado almacenado
Original:
returns the logical complement of the result of a call to the stored predicate
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::binary_negate función) [edit]
llama a la función almacenada
Original:
calls the stored function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::reference_wrapper función) [edit]
lexicographically compares two strings using this locale's collate facet
(miembro público of std::locale función) [edit]
compara dos valores de tipo value_type
Original:
compares two values of type value_type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::map::value_compare función) [edit]
compara dos valores de tipo value_type
Original:
compares two values of type value_type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::multimap::value_compare función) [edit]
ejecuta la función
Original:
executes the function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::packaged_task función) [edit]
avances del estado del motor y devuelve el valor generado
Original:
advances the engine's state and returns the generated value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::linear_congruential_engine función) [edit]
genera el siguiente número aleatorio en la distribución
Original:
generates the next random number in the distribution
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::uniform_int_distribution función) [edit]
Varias clases de la biblioteca estándar definidos por el usuario proporcionan funciones de conversión
Original:
Several standard library classes provide user-defined conversion functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Plantilla:cpp/utility/functional/function/dcl list operator bool
comprueba si el valor es distinto de cero
Original:
checks if the value is non-zero
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::error_code función)
comprueba si el valor es distinto de cero
Original:
checks if the value is non-zero
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::error_condition función)
accede al elemento de la bitset
Original:
accesses the element of the bitset
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::bitset::reference función)
accede al elemento del vector <bool>
Original:
accesses the element of the vector<bool>
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::vector<bool>::reference función)
comprueba si se asocia objeto administrado
Original:
checks if there is associated managed object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::unique_ptr función) [edit]
comprueba si se asocia objeto administrado
Original:
checks if there is associated managed object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::shared_ptr función) [edit]
accede a la referencia almacenada
Original:
accesses the stored reference
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::reference_wrapper función)
convierte el objeto a value_type, devuelve value
Original:
converts the object to value_type, returns value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::integral_constant función)
(hasta C++11)
(desde C++11)
comprueba si se ha producido ningún error (sinónimo de !fail())
Original:
checks if no error has occurred (synonym of !fail())
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::basic_ios función) [edit]
se convierte en el tipo de cadena subyacente
Original:
converts to the underlying string type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::sub_match función)
carga un valor de un objeto atómico
Original:
loads a value from an atomic object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::atomic función) [edit]
comprueba si el bloqueo de exclusión mutua es dueña de su asociado
Original:
tests whether the lock owns its associated mutex
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::unique_lock función) [edit]
convierte el puntero administrado a un puntero de tipo diferente
Original:
converts the managed pointer to a pointer to different type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público of std::auto_ptr función)
El operador coma no se sobrecarga por cualquier clase de la biblioteca estándar. La biblioteca utiliza operator, impulso en boost.assign, boost.spirit, y otras bibliotecas .
Original:
The comma operator is not overloaded by any class in the standard library. The boost library uses operator, in boost.assign, boost.spirit, and other libraries.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Ver también

La precedencia de operadores

Common operators
asignación incrementNJdecrement aritmética lógico comparación memberNJaccess otro

a = b
a = rvalue
a += b
a -= b
a *= b
a /= b
a %= b
a &= b
a |= b
a ^= b
a <<= b
a >>= b

++a
--a
a++
a--

+a
-a
a + b
a - b
a * b
a / b
a % b
~a
a & b
a | b
a ^ b
a << b
a >> b

!a
a && b
a || b

a == b
a != b
a < b
a > b
a <= b
a >= b

a[b]
*a
&a
a->b
a.b
a->*b
a.*b

a(...)
a, b
(type) a
? :

Special operators
static_cast convierte un tipo a otro tipo
compatible
Original:
static_cast converts one type to another compatible type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
dynamic_cast convierte clase base virtual a class
derivada
Original:
dynamic_cast converts virtual base class to derived class
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
const_cast convierte un tipo a otro compatible con diferentes cv qualifiers
Original:
const_cast converts type to compatible type with different cv qualifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
reinterpret_cast convierte el tipo de type
incompatible
Original:
reinterpret_cast converts type to incompatible type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
new asigna memory
Original:
new allocates memory
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
delete desasigna memory
Original:
delete deallocates memory
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
sizeof consulta el tamaño de un type
Original:
sizeof queries the size of a type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
sizeof... consulta el tamaño de un parámetro de paquete (desde C++11)
Original:
sizeof... queries the size of a parámetro de paquete (desde C++11)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
typeid consulta la información de una type
Original:
typeid queries the type information of a type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
noexcept comprueba si una expresión puede lanzar una excepción (desde C++11)
Original:
noexcept checks if an expression can throw an exception (desde C++11)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
alignof consultas requisitos de alineación de un (desde C++11) tipo
Original:
alignof queries alignment requirements of a type (desde C++11)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.