c++ - What default constructors do we need to provide in each class? -
this question has answer here:
i assumed compiler automatically generate copy constructors , copy operators in c++ if 1 not specified. case move constructor/move operator?
in other words, need specify move constructor , move operator benefits of move semantics. or provided compiler default?
i reading articles state move semantics break if there custom destructor declared in class.
when make sense write move constructor/move operator?
Comments
Post a Comment