Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::hash(std::experimental::shared_ptr)

      From cppreference.com
      <cpp‎ |experimental‎ |shared ptr
       
       
       
       
       
      template<class T>struct hash<std::experimental::shared_ptr<T>>;
      (library fundamentals TS)

      The template specialization ofstd::hash forstd::experimental::shared_ptr<T> allows users to obtain hashes of objects of typestd::experimental::shared_ptr<T>.

      For a givenstd::experimental::shared_ptr<T> p, this specialization ensures thatstd::hash<std::experimental::shared_ptr<T>>()(p)==std::hash<T*>()(p.get()).

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      (C++11)
      hash function object
      (class template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/shared_ptr/hash&oldid=155806"

      [8]ページ先頭

      ©2009-2026 Movatter.jp