1. So, I:
Class A; Class B : public A; Class C : public B;
2. And a vector of type B pointers:
vector<B*> vec;
3.Then:
C* ptr = new C(); vec.push_back(ptr);
So the question is, is it possible to use std :: find like this?
std::find(vec.begin(), vec.end(), prt);
Also, is it good to do a search using this-> pointer?
std::find(vec.begin(), vec.end(), this);
Thanks in advance.
source share