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

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

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

  7. Functions - cppreference.com

    Oct 2, 2023 · When a function is invoked, e.g. in a function-call expression, the parameters are initialized from the arguments (either provided at the place of call or defaulted) and the …

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

  9. explicit specifier - cppreference.com

    Aug 12, 2024 · A ( token that follows explicit is always parsed as part of the explicit specifier: struct S {explicit( S )(const S &);// error in C++20, OK in C++17explicit( operator int)();// error in …

  10. std::equal_to - cppreference.com

    Jul 13, 2024 · Function object for performing comparisons. Unless specialised, invokes operator== on type T.