首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::type_index::operators

bool operator==( const type_index& rhs ) const;

?

(since C++11)

bool operator!=( const type_index& rhs ) const;

?

(since C++11)

bool operator<( const type_index& rhs ) const;

?

(since C++11)

bool operator<=( const type_index& rhs ) const;

?

(since C++11)

bool operator>( const type_index& rhs ) const;

?

(since C++11)

bool operator>=( const type_index& rhs ) const;

?

(since C++11)

比较基础std::type_info物品。

1-2%29检查std::type_info对象引用相同的类型。

3-6%29std::type_info由实现定义的顺序定义的对象。比较是通过type_info::before...

参数

rhs

-

another type_index object to compare to

返回值

1%29true如果std::type_info对象引用相同类型的false否则。

2%29true如果std::type_info对象引用的类型不相同,false否则。

3-6%29true如果基础引用的类型std::type_info对象按相应的顺序排列,false否则。

例外

noexcept规格:

noexcept

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com