Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::type_index::hash_code

      From cppreference.com
      <cpp‎ |types‎ |type index
       
       
      Utilities library
       
       
       
      std::size_t hash_code()constnoexcept;
      (since C++11)

      Returns the hash code of the associatedstd::type_info object. Equivalent to callingtype_info::hash_code directly.

      Contents

      [edit]Parameters

      (none)

      [edit]Return value

      The hash code of the associatedstd::type_info object.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]Defect reports

      The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

      DRApplied toBehavior as publishedCorrect behavior
      LWG 2144C++11type_index::hash_code was not required to be noexceptrequired

      [edit]See also

      hash support forstd::type_index
      (class template specialization)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/types/type_index/hash_code&oldid=121035"

      [8]ページ先頭

      ©2009-2025 Movatter.jp