std::type_info::before
From cppreference.com
bool before( const type_info& rhs ) const; |
(noexcept since C++11) | |
Returns true if the type of this type_info
precedes the type of rhs in the implementation's collation order. No guarantees are given; in particular, the collation order can change between the invocations of the same program.
Contents |
[edit] Parameters
rhs | - | another type information object to compare to |
[edit] Return value
true if the type of this type_info
precedes the type of rhs in the implementation's collation order.
[edit] Example
Run this code
Possible output:
char goes before int in this implementation.
[edit] See also
(removed in C++20) |
checks whether the objects refer to the same type (public member function) |