IT
Size: a a a
IT
AM
a
a
a
IT
AM
a
a
IT
AM
В
DN
#include <iostream>
struct S;
void (S::*foo_ptr)(void);
void (*bar_ptr)(void);
int main()
{
int a = sizeof(foo_ptr);
int b = sizeof(bar_ptr);
std::cout << "non-static member function pointer: " << a << std::endl;
std::cout << "function pointer: " << b << std::endl;
}В
#include <iostream>
struct S;
void (S::*foo_ptr)(void);
void (*bar_ptr)(void);
int main()
{
int a = sizeof(foo_ptr);
int b = sizeof(bar_ptr);
std::cout << "non-static member function pointer: " << a << std::endl;
std::cout << "function pointer: " << b << std::endl;
}DN
В
D

D

D
VK