title: const reference and creating copy
body: <p>(Newbie learning c++ with existing codebase)
  Consider the following snippet:</p>
  
  <pre><code>class Filter
  {
      ...
  public:
      Filter();
      int addFilter(gFilter &amp;filterDesc);
      …
  };
  
  class gFilter 
  {
    public:
    ….
    inline const RangeOfUInt&amp;  getProto() const
    {
         return proto; 
    }
    private:
       …
       RangeOfUInt   proto;
       …
  };
  
  typedef struct
  {
      ValueType  type;
      uint32_t   value1;
      uint32_t   value2;
  } UIntRange;
  
  typedef std::list&lt;UIntRange&gt; RangeOfUInt;
  …
  
  const RangeOfUInt protos = filterDesc.getProto();   //  XXX
  </code></pre>
  
  <p>So in this example, getProto() returns const reference and will create a copy for 'protos' ?</p>