std::hash
Материал из 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 T> struct hash<shared_ptr<T>>; |
(начиная с C++11) | |
Шаблон специализации std::hash для std::shared_ptr<T> позволяет пользователям получить хэши объектов типа 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.
Для данного std::shared_ptr<T> p, эта специализация гарантирует, что 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.
[править] Пример
| Этот раздел не завершён Причина: нет примера |
[править] См. также
| (C++11) |
hash function object (шаблон класса) |