help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a method that returns std::vector&


From: ArbolOne
Subject: a method that returns std::vector&
Date: Sun, 8 Feb 2009 09:36:09 -0800 (PST)
User-agent: G2/1.0

I am learning std::vector, like this:
class MyClass{
      private:
         std::vector<MyContainer> record;
      public:
      MyClass();

      void setRecord(std::vector& obj);
      std::vector<MyClass>& getRecord(){ return record;}
   };

Is it correct?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]