The most basic assignment operator is the"=" operator.
When you copy an object of this class the default assignment operator and copy constructor will copy the value of this member pointer to the new object.
Bu sınıfın bir nesnesini kopyaladığınızda, varsayılan atama operatörü ve kopya kurucusu bu üye işaretçisinin değerini yeni nesneye kopyalar.
Now, if you accidentally use the assignment operator instead of a comparison, the compiler will give you an error and you can correct it.
Bu durumda, eğer yanlışlıkla karşılaştırma yerine atama operatörünü kullanırsanız, derleyici size hata verir ve siz de bu hatayı düzeltebilirsiniz.
In that case, simply declare the copy constructor and copy assignment operator as private without giving a definition
This is possible by defining another assignment operator that takes an parameter
Bunu, parametre olarak alan bir atama işleci daha tanımlayarak sağlayabiliriz
The base assignment operator is '='.
Namely the following three member functions are indispensable: destructor, copy constructor, copy assignment operator.
Yani aşağıdaki üç üye işlevi vazgeçilmezdir: yıkıcı, kopya kurucu, kopya atama operatörü.
If there is no good semantic for copying the resource your class manages, then consider to forbid copying by declaring (not defining) the copy constructor and assignment operator as private.
Sınıfınızın yöneteceği kaynağı kopyalamak için iyi bir semantik yoksa, o zaman bildirerek kopyalamayı yasaklamayı düşünün (tanımlarken) kopya kurucusu ve atama operatörü olarak private.
Since we declared neither the copy constructor nor the assignment operator (nor the destructor) ourselves, these are implicitly defined for us.
Ne kopya kurucuyu ne de atama operatörünü (ne yıkıcıyı) kendimiz ilan etmediğimizden, bunlar bizim için dolaylı olarak tanımlanmıştır.
The single equal sign is the assignment operator, and sets x to 10 (puts the value 10 into the variable x).
Tek eşit işaret, atama işleci olup x 10 olarak ayarlanır (x değişkenine 10 değerini koyar).
The [...] copy constructor and copy assignment operator, [...] and destructor are special member functions.
[...] kopya kurucu ve kopya atama operatörü, [...] ve destructor özel üye işlevleridir.
However, a compound assignment operator (such as +=) is always evaluated in terms of its associated operator (such as +).
Bir bileşik atama işleci (+= gibi) her zaman ilgili işleci (+ gibi) gibi değerlendirilir.
The assignment operator tells the microcontroller to evaluate whatever value or expression is on the right side of the equal sign, and store it in the variable to the left of the equal sign.
Atama işleci, mikrodenetleyiciye eşittir işaretinin sağ tarafında bulunan herhangi bir değer veya ifadeyi değerlendirmesini ve eşit işaretin solundaki değişkende saklamasını söyler.