
operator overloading - cppreference.com
Feb 5, 2025 · The overloads of operator>> and operator<< that take a std::istream& or std::ostream& as the left hand argument are known as insertion and extraction operators.
Increment/decrement operators - cppreference.com
Jan 20, 2025 · Because of the side-effects involved, built-in increment and decrement operators must be used with care to avoid undefined behavior due to violations of sequencing rules.
Other operators - cppreference.com
Mar 5, 2025 · The function call operator provides function semantics for any object. The conditional operator (colloquially referred to as ternary conditional ) checks the boolean …
Member access operators - cppreference.com
Jun 11, 2024 · The resulting function call expression is called pseudo destructor call. It takes no arguments, returns void, evaluates E1, and ends the lifetime of its result object.
Logical operators - cppreference.com
Jun 5, 2024 · 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.
Default comparisons (since C++20) - cppreference.com
May 20, 2025 · Definition A defaulted comparison operator function is a non-template comparison operator function (i.e. <=>, ==, !=, <, >, <=, or >=) satisfying all following conditions: It is a non …
User-defined conversion function - cppreference.com
Aug 14, 2024 · Conversion function can be a template member function, for example, std::auto_ptr<T>::operator auto_ptr<Y>. See member template and template argument …
Comparison operators - cppreference.com
Nov 24, 2024 · Pointer comparison with the strict total order is applied in the following cases: Calling the operator() of the pointer type specializations of std::less, std::greater, …
C Operator Precedence - cppreference.com
Jul 31, 2023 · The following table lists the precedence and associativity of C operators. Operators are listed top to bottom, in descending precedence.
Assignment operators - cppreference.com
Jan 20, 2025 · Built-in simple assignment operator For the built-in simple assignment, target-expr must be a modifiable lvalue. The object referred to by target-expr is modified by replacing its …