title: std::variant cout in C++
body: <p>I am relatively new to CPP and have recently stumbled upon <code>std::variant</code> for C++17.</p>
  
  <p>However, I am unable to use the <code>&lt;&lt;</code> operator on such type of data.</p>
  
  <p>Considering </p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;variant&gt;
  #include &lt;string&gt;
  using namespace std;
  int main() {
  
      variant&lt;int, string&gt; a = "Hello";
      cout&lt;&lt;a;
  }
  </code></pre>
  
  <p>I am unable to print the output. Is there any <em>short</em> way of doing this? Thank you so much in advance. </p>