Espacios de nombres
Variantes
Acciones

std::promise

De cppreference.com
< cpp‎ | thread

 
 
Tema Biblioteca de ayuda
Threads
Original:
Threads
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
this_thread espacio de nombres
Original:
this_thread namespace
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)
Exclusión mutua
Original:
Mutual exclusion
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
Gestión de bloqueos genérico
Original:
Generic lock management
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
Las variables de condición
Original:
Condition variables
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
Futuros
Original:
Futures
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
promise
(C++11)
(C++11)
(C++11)
(C++11)
 
std::promise
Las funciones miembro
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Conseguir el resultado
Original:
Getting the result
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Ajuste del resultado
Original:
Setting the result
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
Definido en la cabecera <future>
template< class T > class promise;
(1) (desde C++11)
template< class T > class promise<T&>;
(2) (desde C++11)
template<>          class promise<void>;
(3) (desde C++11)
El std::promise plantilla de clase proporciona una facilidad para almacenar un valor que se adquirió más adelante de forma asíncrona a través de un objeto std::future, que puede suministrar el std::promise .
Original:
The class template std::promise provides a facility to store a value that is later acquired asynchronously via a std::future object, that the std::promise can supply.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Contenido

[editar] Las funciones miembro

construye el objeto promesa
Original:
constructs the promise object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función miembro público) [editar]
destructs the promise object
(función miembro público) [editar]
asigna el estado compartido
Original:
assigns the shared state
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función miembro público) [editar]
swaps dos objetos promesa
Original:
swaps two promise objects
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función miembro público) [editar]
Conseguir el resultado
Original:
Getting the result
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
devuelve un future asociado con el resultado prometido
Original:
returns a future associated with the promised result
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función miembro público) [editar]
Ajuste del resultado
Original:
Setting the result
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
sets the result to specific value
(función miembro público) [editar]
establece el resultado al valor específico, mientras que la entrega de la notificación, sólo en la salida de hilo
Original:
sets the result to specific value while delivering the notification only at thread exit
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función miembro público) [editar]
establece el resultado para indicar una excepción
Original:
sets the result to indicate an exception
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función miembro público) [editar]
establece el resultado que indique una excepción durante la entrega de la notificación, sólo en la salida de hilo
Original:
sets the result to indicate an exception while delivering the notification only at thread exit
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función miembro público) [editar]

[editar] Terceros funciones

el algoritmo se especializa std::swap
Original:
specializes the std::swap algorithm
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de función) [editar]

[editar] Clases de ayuda

se especializa el rasgo tipo std::uses_allocator
Original:
specializes the std::uses_allocator type trait
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(especialización de plantilla de clase) [editar]