Reference counting on vectors: A vector can have three states: temporary, non-shared, shared Operations with copy plus escape semantics (e.g., local variable assignment): - temporary => non-shared - non-shared => temporary copy Operations with copy and non-escaping semantics (e.g., argument) - temporary => temporary - non-shared => shared
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|