
operator overloading - cppreference.com
An operator function must have at least one function parameter or implicit object parameter whose type is a class, a reference to a class, an enumeration, or a reference to an enumeration. The operators :: …
Comparison operators - cppreference.com
Two-way comparison The two-way comparison operator expressions have the form Relational operators ... Equality operators ... 1) Returns true if lhs is less than rhs, false otherwise. 2) Returns true if lhs is …
Member access operators - cppreference.com
Explanation Built-in subscript operator provides access to an object pointed-to by the pointer or array operand. Built-in indirection operator provides access to an object or function pointed-to by the …
C++ keyword: operator - cppreference.com
Usage name of an overloaded operator function name of a user-defined conversion function name of an allocation function name of a deallocation function
Arithmetic operators - cppreference.com
Built-in bitwise logic operators For the built-in bitwise NOT operator, rhs must be a prvalue of integral or unscoped enumeration type, and integral promotion is performed on rhs. For other built-in bitwise …
operator==,!=,<,<=,>,>=,<=> (std::vector) - cppreference.com
3-6) Compares the contents of lhs and rhs lexicographically. The comparison is performed by a function equivalent to std::lexicographical_compare.
Other operators - cppreference.com
Other operators ... The function call operator provides function semantics for any object. The conditional operator (colloquially referred to as ternary conditional ) checks the boolean value of the first …
Comparison operators - cppreference.com
Comparison operators are binary operators that test a condition and return 1 if that condition is logically true and 0 if that condition is false.
Logical operators - cppreference.com
This operator is short-circuiting: if the first operand is true, the second operand is not evaluated. Note that bitwise logic operators do not perform short-circuiting.
operator==,!=,<,<=,>,>=,<=> (std::basic_string) - cppreference.com
Compares the contents of a string with another string or a null-terminated array of CharT. All comparisons are done via the compare () member function (which itself is defined in terms of …