Apache C++ Standard Library Reference Guide

## compare

Library: General utilities

    Does not inherit

- Local Index
- Summary
- See Also
- Standards Conformance

### Local Index

No Entries

### Summary

A binary function or a function object that returns `true` or `false`. compare objects are typically passed as template parameters, and used for ordering elements within a container.

Use of the function objects equal_to and not_equal_to to order elements may give unexpected results.

### See Also

binary_function, equal_to, not_equal_to, Function Objects

### Standards Conformance

ISO/IEC 14882:1998 -- International Standard for Information Systems -- Programming Language C++, Section 25.3