reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | int main() { // Test pointer to array. int array[2][4]; int(*array_pointer)[2][4] = &array; struct ST { int a; int f(int x) { return 1; } }; ST s = {10}; // Test pointer to a local. int *p_int = &s.a; // Test pointer to data member. int ST::*p_member_field = &ST::a; // Test pointer to member function. int (ST::*p_member_method)(int) = &ST::f; return 0; } |