About 400 results
Open links in new tab
  1. 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 …

  2. 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 …

  3. 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.

  4. 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 -- …

  5. 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 …

  6. 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 …

  7. 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 …

  8. 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.

  9. 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 …

  10. 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 …