title: Getting object from iterator
body: <p>I want to get object from <code>set&lt;Node&gt;</code> but I think my function gives me copy of this object. How to fix it?</p>
  
  <pre><code>Node findByNum(int n){
      for (set&lt;Node&gt;::iterator it = this-&gt;children.begin();it != this-&gt;children.end(); it++){
          if ((*it).num == n){
              return (*it);
          }
      }
  }
  </code></pre>