std::get_deleter
Da cppreference.com
< cpp | memory | shared ptr
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
template<class Deleter, class T> Deleter* get_deleter(const shared_ptr<T> & p) const; |
||
O acesso a deleter o
p
do. O std::shared_ptr deve ter sido criado com um dos construtores que levam um deleter como parâmetro. Caso contrário, ele irá retornar 0.Original:
Access to the
p
's deleter. The std::shared_ptr must have been created with one of the constructors that take a deleter as a parameter. Otherwise, it will return 0.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[editar] 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.
You can help to correct and verify the translation. Click here for instructions.
[editar] Valor de retorno
Um ponteiro para o deleter propriedade ou 0.
Original:
A pointer to the owned deleter or 0.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[editar] Veja também
std::shared_ptr construtores Original: std::shared_ptr constructors 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) |