v1.size()> v2.capacity()
constructor is called
constructor is called
constructor is called
copy constructor is called
copy constructor is called
destructor is called
#####
destructor is called
destructor is called
destructor is called
destructor is called
#####
v1.size()> v2.size()
constructor is called
constructor is called
constructor is called
operator =
copy constructor is called
#####
destructor is called
destructor is called
destructor is called
destructor is called
#####
v1.size()<= v2.size()
constructor is called
constructor is called
constructor is called
operator =
destructor is called
#####
destructor is called
destructor is called
#####