title: Instantiating a queue as a class member in C++
body: <p>Suppose I need to have a class which wraps a priority queue of other objects (meaning the queue is a member of the class), and additionally gives it some extra functions.</p>
  
  <p>I am not quite sure what the best way is to define that vector and, mainly, how to instantiate it.</p>
  
  <p>Currently I have something like this in the header file:</p>
  
  <pre><code>// in SomeClass.h:
  class SomeClass
  {
      public:
          SomeClass(); // constructor
              // other methods
      private:
          std::priority_queue&lt;OtherClass&gt; queue;
  };
  </code></pre>
  
  <p>while the source file is something like this:</p>
  
  <pre><code>// in SomeClass.cpp
  SomeClass::SomeClass():
      queue() // removed the constructor, no need to explicitly call it
      {}
  
  // other methods
  </code></pre>
  
  <p><hr>
  <strong>EDIT:</strong> removed the call, per Ray's answer.</p>