in the first example: ``` 10: rjk::duck c{std::vector {1, 2, 3}}; 11: c.size(); // 3 12: 13: c = std::string{"hello"}; ``` Does the assignment on line 13 call the destrucor for the vector of ints created on line 10?
Is there another option? Or were you asking if it leaks memory? Maybe you were asking if it implements custom destructors? GC?
yeah,
If variable c where of type void* instead of duck, the assignment on line 13 would leak the memory used by the vector.