Guest User

Untitled

a guest
Jan 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. class Object
  2. {
  3. public:
  4. std::shared_ptr<Object> operator[](const int index);
  5.  
  6. [...]
  7.  
  8. private:
  9. std::vector<std::shared_ptr<Object>> internal_array;
  10. };
  11.  
  12. std::shared_ptr<Object> one_object;
  13. std::shared_ptr<Object> another_object = one_object[0];
Add Comment
Please, Sign In to add comment