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

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

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

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

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

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

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

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

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

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