Is there a way to determine how the external memory of a std::function
object is allocated? std::function
might not allocate external memory if it is feed with a raw C function pointer, but it might get a std::bind()
object, and it is not prepared to store copied std::function
objects of any size, so it has to allocate external memory in this case.
Aucun commentaire:
Enregistrer un commentaire