If I have a class similar to this:
namespace Matrix {
class Matrix;
class Vector {
public:
//i want to create a vector the same size as contents with the same values
Vector(const std::vector<ValueType>& contents);
private:
std::vector<ValueType> contents;
}
When contents is passed in through the constructor, is it automatically copied to the vector called contents I defined within the class? Or is there something I have to do in the constructor definition to achieve that?