[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/memory/shared_ptr/hash [Back]  [Original]

std::hash(std::shared_ptr) cppreference.com
cppreference.com

std::hash(std::shared_ptr)

cppreference.com
 
C++
(C++20)
(C++20)
(C++11)
(C++20)
/
(C++11)
(C++11)
(C++11)
(C++17)
 
 
no section name
no section name
(C++11)( C++23)
(C++11)( C++23)
(C++11)( C++23)
(C++11)( C++23)
(C++11)( C++23)
(C++11)( C++23)



no section name
 
 
<tbody> </tbody>
template<class T> struct hash<shared_ptr<T>>;
( C++11)

std::hash std::shared_ptr<T> std::shared_ptr<T>.

std::shared_ptr<T> p ,

std::hash<std::shared_ptr<T>>()(p) == std::hash<T*>()(p.get()).

( C++17)

std::hash<std::shared_ptr<T>>()(p) ==
std::hash<typename std::shared_ptr<T>::element_type*>()(p.get())
.

( C++17)

(C++11)
-
( ) []

Web Proxy Viewer  |  New URL  |  Original Page