I have a class S:
class S
{
public:
S(int ssx, int ssy, int cnt)
{
sx = ssx;
sy = ssy;
count = cnt;
}
int sx;
int sy;
int count;
};
I want to make a container which can find a pointer (iterator) of the element that match by 2 parametres (like pair {sx, sy}, this pair should be equal to the pair of the element in container). Are there any STL methods or should I implement the search using the circle FOR(;;) and a simple vector of S*?