title: Does C++11 have C#-style properties?
body: <p>In C#, there is a nice syntax sugar for fields with getter and setter. Moreover, I like the auto-implemented properties which allow me to write</p>
  
  <pre><code>public Foo foo { get; private set; }
  </code></pre>
  
  <p>In C++ I have to write</p>
  
  <pre><code>private:
      Foo foo;
  public:
      Foo getFoo() { return foo; }
  </code></pre>
  
  <p>Is there some such concept in the C++11 allowing me to have some syntax sugar on this?</p>