About 3,300,000 results
Open links in new tab
  1. What does colon equal (:=) in Python mean? - Stack Overflow

    Mar 21, 2023 · This symbol := is an assignment operator in Python (mostly called as the Walrus Operator). In a nutshell, the walrus operator compresses our code to make it a little shorter.

  2. What are the differences between "=" and "<-" assignment …

    In any other context, = refers to the assignment operator call. In particular, merely putting parentheses around the subexpression makes any of the above (a) valid, and (b) an assignment.

  3. syntax - What is the := operator? - Stack Overflow

    Nov 13, 2018 · In all languages that support an operator := it means assignment. In languages that support an operator :=, the = operator usually means an equality comparison. In …

  4. c++ - Class Assignment Operators - Stack Overflow

    Dec 22, 2010 · If your assignment operator needs a check for self-assignment, chances are there's a better implementation. Good implementations (like Copy-And-Swap) don't need that …

  5. Why Assignment Operator implicitly deleted for const-members in …

    Mar 25, 2023 · The assignment operator= is deleted because by default it just copies/assigns to each data member of the class. But since a const variable cannot be assigned to, there is no …

  6. virtual assignment operator C++ - Stack Overflow

    Mar 21, 2009 · Assignment Operator in C++ can be made virtual. Why is it required? Can we make other operators virtual too?

  7. c++ - Assignment operator inheritance - Stack Overflow

    May 27, 2015 · An assignment operator shall be implemented by a non-static member function with exactly one parameter. Because a copy assignment operator operator= is implicitly …

  8. assignment operator - What's the difference between `=` and `<-` …

    Except for operator precedence, the <- and = assignment operators are completely identical by default. R complicates matters by giving = a secondary syntactic meaning, besides its use as …

  9. How to use base class's constructors and assignment operator in …

    D(const D& d) { (*this) = d; } D& operator=(const D& d); Do I have to rewrite all of them in D, or is there a way to use B 's constructors and operator? I would especially want to avoid rewriting …

  10. What is the difference between += and =+ C assignment operators

    In modern C, or even moderately ancient C, += is a compound assignment operator, and =+ is parsed as two separate tokens. = and +. Punctuation tokens are allowed to be adjacent.