title: Passing a variable to a function which takes a smart pointer as a parameter, without that variable being a smart pointer itself.
body: <p>Ok, so see how it is possible to pass the address of a variable to a function that requires a pointer like so:</p>
  
  <pre><code>void func(int* x)
  {
     //some code
  }
  int y = 9;
  
  func(&amp;y);
  </code></pre>
  
  <p>Is it possible to do something similar to what is above if the function was like the following:</p>
  
  <pre><code> void func(std::unique_ptr x)
   {
       //some code
   }
  </code></pre>
  
  <p>How could I pass it y if I didn't want to make y a unique_ptr for a reason or another?</p>