std::type_index::operator==,!=,<,<=,>,>=
提供: cppreference.com
<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。