I have such problem: I have class Foo
, and if have some objects of this class,
Foo a();
I need to put this object to 2 different vectors:
std::vector<Foo> vA, vB;
and if a
changes in vA
it should be changed in vB
, vectors vA
and vB
can be different, but they can have same objects. I know that it is possible to do with Boost, but I can't use Boost.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…