title: find() for std::set
body: <p>I have a question on how the objects stored in set are compared.</p>
  
  <pre><code>class A
  {
  public:  
  char * name;
  };
  </code></pre>
  
  <p>I am storing objects of A in a set. I am provide a comparator class which provides implementation of operator() ( A &amp;ob1, A &amp; ob2 ). Here I compare ob1.name &amp; ob2.name and return true when ob1.name is lesser than ob2.name.</p>
  
  <p>Will I be able to search for an object using the find() of set ? I have provided implementation only for operator(). Will this be sufficient ? Could someone explain how find() works in this case ?</p>
  
  <p>Thanks in advance </p>