Original Post
I have a class that has a private std::vector variable. I.E. std::vector m_Squares; "cSquare" is a class. I want to set up an accessor function so the outside world can make use of it. This is what I came up with. std::vector& cBlock::GetSquares(){ return m_Squares; } I basically want to double check if this is correct. I want to be passing the address of my vector correct? Regards Chad