Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Object
- {
- public:
- std::shared_ptr<Object> operator[](const int index);
- [...]
- private:
- std::vector<std::shared_ptr<Object>> internal_array;
- };
- std::shared_ptr<Object> one_object;
- std::shared_ptr<Object> another_object = one_object[0];
Add Comment
Please, Sign In to add comment