std::type_info::before - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::type_info::before

From cppreference.com
< cpp‎ | types‎ | type info

bool before( const type_info& rhs ); |  |

Returns true if the referred type precedes type, referred to by `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.

### [edit] Parameters

rhs | - | another type information object to compare to

### [edit] Return value

true if the referred type precedes type, referred to by rhs in the implementation's collation order.

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

operator==operator!= | checks whether the objects refer to the same type (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/types/type_info/before&oldid=59489"
Category:

- Todo no example