Name for a public const and private writable atrribute?
<p>Programming in C++, I often want to give the user of a class read-only access to an attribute, and the class itself read-write access. I hate <code>XxxGet()</code> methods, so I often use a <code>public const &amp;</code> to a private attribute, like this:</p>

<pre><code>class counter {
  private:
     int _count;

  public:
     const int &amp; count;

     counter : _count( 0 ), count( _count ){}

     void inc( void ){ _counter++; }
};
</code></pre>

<p>Is there a common name for this trick?</p>
