Is there a reason that the std::priority_queue's constructor accepts a comparator by constant reference? What if the comparator goes out of scope?
I know that lambda functions can be used so doesn't this mean that copies are not made internally?
I am sorry if there has already been a post about this. I have not been able to find it!
Aucun commentaire:
Enregistrer un commentaire