Based on the result of this topic
I have written a program like
void test1(){}
int main() {
auto test2 = [](){};
printf("%p\n%p\n", test1, &test1);
printf("%p\n%p", test2, &test2);
return 0;
}
the result are
0x561cac7d91a9
0x561cac7d91a9
0x7ffe9e565397
(nil)
on https://www.programiz.com/cpp-programming/online-compiler/
So the test2 is storing a function pointer to the lambda function?
and my question is that object test2, which stores the lambda data, not have its own address?
I thought this test2 should have its own address.