title: istream >> ostream << Operator Overloading with * Pointer
body: <p>How would I overload the >> and &lt;&lt; operators if they are dealing with pointers?</p>
  
  <p>in header: </p>
  
  <pre><code>friend std::istream&amp; operator &gt;&gt;( std::istream&amp; ins, Classname* &amp; e);
  friend std::ostream&amp; operator &lt;&lt;( std::ostream&amp; outs, const Classname * e);
  </code></pre>
  
  <p>in cpp:</p>
  
  <pre><code>std::ostream&amp; operator &lt;&lt;( std::ostream&amp; outs, const Classname * e)
  {   // what do I do here?
  return outs;
  }
  std::istream&amp; operator &gt;&gt;( std::istream&amp; ins, Classname* &amp; e){
  // what do I do here?
      return ins;
  }
  </code></pre>