名前空間
変種

std::type_index::operator==,!=,<,<=,>,>=

提供: cppreference.com
 
 
ユーティリティライブラリ
汎用ユーティリティ
日付と時間
関数オブジェクト
書式化ライブラリ (C++20)
(C++11)
関係演算子 (C++20で非推奨)
整数比較関数
(C++20)
スワップと型操作
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
一般的な語彙の型
(C++11)
(C++17)
(C++17)
(C++17)
(C++17)

初等文字列変換
(C++17)
(C++17)
 
型サポート
型の性質
(C++11)
(C++11)
(C++14)
(C++11)
(C++11)(C++20未満)
(C++11)(C++20で非推奨)
(C++11)
型特性定数
メタ関数
(C++17)
定数評価文脈
サポートされている操作
関係と性質の問い合わせ
型変更
(C++11)(C++11)(C++11)
型変換
(C++11)
(C++11)
(C++17)
(C++11)(C++20未満)(C++17)
 
 
<tbody> </tbody>
bool operator==( const type_index& rhs ) const noexcept;
(C++11以上)
bool operator!=( const type_index& rhs ) const noexcept;
(C++11以上)
bool operator<( const type_index& rhs ) const noexcept;
(C++11以上)
bool operator<=( const type_index& rhs ) const noexcept;
(C++11以上)
bool operator>( const type_index& rhs ) const noexcept;
(C++11以上)
bool operator>=( const type_index& rhs ) const noexcept;
(C++11以上)

ベースとなる std::type_info オブジェクトを比較します。

1-2) ベースとなる std::type_info オブジェクトが同じ型を参照するかどうか調べます。

3-6) ベースとなる std::type_info を処理系定義の順序で比較します。 比較は type_info::before によって行われます。

引数

rhs - 比較する別の type_index オブジェクト

戻り値

1) ベースとなる std::type_info オブジェクトが同じ型を参照する場合は true、そうでなければ false

2) ベースとなる std::type_info オブジェクトが同じ型を参照しない場合は true、そうでなければ false

3-6) ベースとなる std::type_info オブジェクトの参照する型が対応する順序で順序付けられる場合は true、そうでなければ false

Morty Proxy This is a proxified and sanitized view of the page, visit original site.