I have a typedef std::vector that I'd like to expand to have a function that will seek members with a specific value in a variable. I currently have something like
How could I have the MyClassArr type have additional functions?Code:class MyClass { public: int a; }; typedef std::vector<MyClass> MyClassArr;
Thank you in advance.
EDIT:
I believe I figured it out.
Code:class MyClass { public: int a; }; class MyClassArr:public std::vector<MyClass> { void func(); };




Reply With Quote