◐ Shell
clean mode source ↗

std::shared_ptr::operator bool - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

Verifica se *this gerencia um objeto, isto é, se get() != 0.

Original:

Checks if *this manages an object, i.e. whether get() != 0.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parâmetros

(Nenhum)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Valor de retorno

true se *this gerencia um objeto, caso contrário false.

Original:

true if *this manages an object, false otherwise.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Exemplo

Veja também

retorna um ponteiro para o objeto gerenciado

Original:

returns a pointer to the managed object

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(função pública membro) [edit]