I have vector of pointers in my class:
std::vector<Customer *> customers
Now I want to implement the move constructor. I'v find out that I can use std::move
of std::vector
. the problem is that I don't know if it will clear the old vector values. please if anyone can explain it to me.
my move constructor:
OpenTable::OpenTable(OpenTable&& other) : BaseAction(), tableId(other.tableId)
{
customers=std::move(other.customers);
}