最終更新日時(UTC):
が更新

履歴 編集

function
<typeindex>

std::type_index::コンストラクタ(C++11)

type_index(const type_info& rhs) noexcept;

type_indexの構築

  • type_index(const type_info& rhs) noexcept

type_infoオブジェクトからの構築

例外

投げない

#include <cassert>
#include <typeindex>

int main()
{
  std::type_index ti = typeid(int);
  assert(ti == typeid(int));
}

出力

バージョン

言語

  • C++11

処理系