I am programming in C++ and cant figure out how to access the STL container in a parent class. I have the following classes:
class Card
class CardPile : private vector<Card*>
class Deck : public CardPile{Foo()}
I know that if Foo()
was in CardPile class I can call vector's size with size()
. How would I call vector's size()
function from Foo()
.
EDIT: Unfortunately, I am not allowed to change any of the class definitions