Anonymous / unnamed struct
Anonymous:
struct Foo {
  struct { int x, y; };
};
Foo foo; do_stuff_with(foo.x);
Unnamed:
struct Foo {
  struct { int x, y; } child;
};
Foo foo; do_stuff_with(foo.child.x);
    Written on March 24, 2022, Last update on March 24, 2022
  
	
		
    	structure
  		
    	c++