title: c++ templated function calling
body: <pre><code>template &lt;class ElementType&gt;
  
  Event&lt;ElementType&gt;::Event(){
      Queue&lt;ElementType&gt; q = *new Queue&lt;ElementType&gt;();
  
  }
  
  
  int main(){
      Queue&lt;class ElementType&gt; q = *new Queue&lt;ElementType&gt;();
  
      Event&lt;ElementType&gt; evt = *new Event&lt;ElementType&gt;();
  
  
  
      evt.simulation();
  
      return 0;
  }
  
  
  template &lt;class ElementType&gt;
  void Event&lt;ElementType&gt;::simulation(){
      Queue&lt;ElementType&gt; bankLine = *new Queue&lt;ElementType&gt;();
      PriorityQueue&lt;ElementType&gt; eventpqueue = *new PriorityQueue&lt;ElementType&gt;
  ();
  
      bool avalteller = true;
      bankLine.
      while(!(bankLine.template bankline.isEmpty&lt;ElementType&gt;())){
          //file reader
          Queue&lt;ElementType&gt; newEvent = bankLine.peek();
      }
  
  
  
  
  
      while(!eventpqueue.template eventpqueue.isEmpty&lt;ElementType&gt;()){
          PriorityQueue&lt;ElementType&gt; newEvent = eventpqueue.peek();
  
          int cTime = newEvent.getTime();
  
          if(newEvent.template getType&lt;ElementType&gt;() == "A"){
              processArrival(newEvent, eventpqueue, bankLine);
  
          }
          else{
              processDeparture(newEvent, eventpqueue, bankLine);
          }
      }
  
  }
  </code></pre>
  
  <p>Can I ask how can i call Queue bankLine and PriorityQueue eventpqueue?? </p>
  
  <p>I searched to call those function and I did it this way but I get unqualified-id error with XCODE. </p>
  
  <p>Queue and PriorityQueue are different header files each other and they both have cpp file. and I wish to call <code>bankLine.isEmpty()</code> function and <code>eventpqueue.isEmpty()</code>.</p>