Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::type_info

      From cppreference.com
      <cpp‎ |types
       
       
      Utilities library
       
       
       
      Defined in header<typeinfo>
      class type_info;

      The classtype_info holds implementation-specific information about a type, including the name of the type and means to compare two types for equality or collating order. This is the class returned by thetypeid operator.

      Thetype_info class is neitherCopyConstructible norCopyAssignable.

      [edit]Member functions

      (constructor)
      [deleted]
      has neither default nor copy constructors
      (public member function)
      [virtual]
      the virtual destructor makestype_info a polymorphic class
      (virtual public member function)
      operator=
      [deleted]
      can not be copy-assigned
      (public member function)
      (removed in C++20)
      checks whether the objects refer to the same type
      (public member function)[edit]
      checks whether the referred type precedes referred type of anothertype_info
      object in the implementation defined order, i.e. orders the referred types
      (public member function)[edit]
      (C++11)
      returns a value which is identical for the same types
      (public member function)[edit]
      implementation defined name of the type
      (public member function)[edit]

      [edit]See also

      (C++11)
      wrapper around atype_info object, that can be used as index in associative and unordered associative containers
      (class)[edit]
      typeid Queries information of a type, returning astd::type_info object representing the type
      (built-in operator)
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/types/type_info&oldid=151131"

      [8]ページ先頭

      ©2009-2025 Movatter.jp