rozz
0
Q:

storing custom objects in set c++

Add to Class template

bool operator< (const ClassName &other) const
{
    return x < other.x;
}
0

New to Communities?

Join the community