hi i"m new to c++ and became a program to insert some stuff.
there is a class called Cluster those clusters appear mostly as vector<Cluster>
if i define
there is something like
which will give me the number of elements inside my cluster. i now want to sort the vector<Cluster> with respect to the number of elements in my cluster.
afterwards i want to pick only the ones with less than 5 elements, and erase them from vector<Cluster>. afterwards i have to access the vector<Cluster> but i dont want the vector<Cluster> to be accessed from smallest to largest cluster.