P
Per
Hi!
I have a question about the operator=
I have seen two versions:
1.
void operator= (const SomeClass& C) {
....
}
2.
SomeClass& operator= (const SomeClass& C) {
....
return *this;
}
What is the difference and do one gain any performance using version
1. Is version 1 working with STL?
I have a question about the operator=
I have seen two versions:
1.
void operator= (const SomeClass& C) {
....
}
2.
SomeClass& operator= (const SomeClass& C) {
....
return *this;
}
What is the difference and do one gain any performance using version
1. Is version 1 working with STL?