I'm trying to figure out to get the address of a lambda function within itself. Here is a sample code
[]() {
cout<<"Address of this lambda function is => "<< ????
}();
I know that i can capture the lambda in a variable and print the address, but I want to do it in place when this anonymous function is executing.
Is there a simpler way to do so?
Thanks
Aucun commentaire:
Enregistrer un commentaire