<metanoindex/>
<tbody> </tbody> template<class T> struct hash<shared_ptr<T>>; |
(dal C++11) | |
Il modello di specializzazione di std::hash per
std::shared_ptr<T> consente agli utenti di ottenere gli hash di oggetti di tipo std::shared_ptr<T>.Original:
The template specialization of std::hash for
std::shared_ptr<T> allows users to obtain hashes of objects of type std::shared_ptr<T>.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.
Per un dato
std::shared_ptr<T> p, questa specializzazione assicura che std::hash<std::shared_ptr<T>>()(p) == std::hash<T*>()(p.get()).Original:
For a given
std::shared_ptr<T> p, this specialization ensures that std::hash<std::shared_ptr<T>>()(p) == std::hash<T*>()(p.get()).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.
Esempio
Vedi anche
(C++11) |
hash function object (classe template) |