
operator overloading - cppreference.com
Feb 5, 2025 · Explanation When an operator appears in an expression, and at least one of its operands has a class type or an enumeration type, then overload resolution is used to …
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.
Increment/decrement operators - cppreference.com
Jan 20, 2025 · 1) The value of expression is modified as if it were the operand of the prefix ++ operator. 2) The value of expression is modified as if it were the operand of the prefix -- …
Overload resolution - cppreference.com
Apr 26, 2025 · The function-call operators of T are obtained by ordinary lookup of the name operator() in the context of the expression (E).operator(), and every declaration found is added …
User-defined conversion function - cppreference.com
Aug 14, 2024 · When making an explicit call to the conversion function, conversion-type-id is greedy: it is the longest sequence of tokens that could possibly form a conversion-type …
Logical operators - cppreference.com
Jun 5, 2024 · For the built-in logical OR operator, the result is true if either the first or the second operand (or both) is true. This operator is short-circuiting: if the first operand is true, the …
Comparison operators - cppreference.com
Nov 24, 2024 · Calling the operator() of the pointer type specializations of std::less, std::greater, std::less_equal, and std::greater_equal.
Lambda expressions (since C++11) - cppreference.com
Mar 2, 2025 · If a non-reference entity is captured by reference, implicitly or explicitly, and operator() of the closure object is invoked after the entity's lifetime has ended, undefined …
Assignment operators - cppreference.com
Jan 20, 2025 · Built-in compound assignment operator The behavior of every built-in compound-assignment expression target-exprop=new-value is exactly the same as the behavior of the …