mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-08-04 01:36:10 -04:00
Add note on implementation
This commit is contained in:
parent
e1dfd4247b
commit
1f393f07da
@ -62,6 +62,11 @@ struct vector {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Note: This is a bit of a lazy scheme
|
||||||
|
// We always destruct all previous memory and copy construct the
|
||||||
|
// new information. It could be better to simply copy assign and
|
||||||
|
// only in the case of new allocation copy construct
|
||||||
|
|
||||||
vector& operator=(const vector& rhs){
|
vector& operator=(const vector& rhs){
|
||||||
if (this != &rhs) {
|
if (this != &rhs) {
|
||||||
if (_capacity < rhs._capacity) {
|
if (_capacity < rhs._capacity) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user