Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::hash(std::experimental::propagate_const)

      From cppreference.com
      <cpp‎ |experimental‎ |propagate const
       
       
       
       
       
      template<class T>struct hash<std::experimental::propagate_const<T>>;
      (library fundamentals TS v2)

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

      For a givenstd::experimental::propagate_const<T> p, this specialization ensures thatstd::hash<std::experimental::propagate_const<T>>()(p)==std::hash<T>()(p.t_), wherep.t_ is the pointer-like object wrapped byp.

      [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/propagate_const/hash&oldid=155162"

      [8]ページ先頭

      ©2009-2025 Movatter.jp