How to properly instantiate an object in one container and store a shared_ptr to it in a separate container?

后端 未结 0 1693
无人共我
无人共我 2020-11-21 10:10

Suppose we have a struct or class that stores some data:

struct Foo
{
    int bar;
}

Suppose also that I\'d like to store two separate vector

相关标签:
回答
  • 消灭零回复
提交回复
热议问题