title: Call class method without parentheses in c++
body: <p>Some c++ STL containers provide getters like</p>
  
  <pre><code>Foo.first
  
  Foo.second
  </code></pre>
  
  <p>which apart from being very practical, improve code readability. Now suppose that I want to reproduce that feature in one of my own classes. Is it possible to define methods like</p>
  
  <pre><code>Matrix.components
  
  Matrix.size
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>Matrix.components()
  
  Matrix.size()
  </code></pre>
  
  <p>(same but without parentheses)? How could it be achieved?</p>