title: return an empty vector c++
body: <p>The requirement is that I need to search a vector to see if it contains the value passed in as the parameter. If the value exists in the vector, I return the vector. Else, I return an empty vector. I am not sure how to return an empty vector in c++. hope you could help me.
  my mimic.h:</p>
  
  <pre><code>vector&lt;Pair&gt; map;
  </code></pre>
  
  <p>my Pair.h:</p>
  
  <pre><code>    Pair(){
  }
  ~Pair(){}
  string prefix;
  vector&lt;string&gt; sufix;
  </code></pre>
  
  <p>Return vector function :</p>
  
  <pre><code>vector&lt;string&gt; Mimic::getSuffixList(string prefix){  
    int find=0;
    for(int i =0; i &lt; map.size(); i++)
    {
     if(map[i].prefix == prefix)
     {
  
          find =1;
          return map[i].sufix; //sufix is a vector from a class called "Pair.h"
      }
  
     }
     if(find==0)
     {
           //return an empty vector. 
     }
  
    }
  </code></pre>