title: Is there a way to automatically generate getters and setters if they aren't present in C++?
body: <p>I'm experienced with Objective-C, and in Objective-C you can let the compiler generate getters and setters for you if they aren't already present (<code>@synthesize</code>).</p>
  
  <p>Is there a way to do this in C++, or do I need to implement all getters and setters myself?</p>