title: map<string, string> how to insert data in this map?
body: <p>I need to store strings in key value format. So am using Map like below.</p>
  
  <pre><code>#include&lt;map&gt;
  using namespace std;
  int main()
  {
      map&lt;string, string&gt; m;
      string s1 = "1";
      string v1 = "A";
  
      m.insert(pair&lt;string, string&gt;(s1, v1)); //Error
  }
  </code></pre>
  
  <p>Am getting below error at insert line</p>
  
  <blockquote>
    <p>error C2784: 'bool std::operator &lt;(const std::_Tree&lt;_Traits> &amp;,const std::_Tree&lt;_Traits> &amp;)' : could not deduce template argument for 'const std::_Tree&lt;_Traits> &amp;' from 'const std::string'</p>
  </blockquote>
  
  <p>I tried make_pair function also like below, but that too reports the same error.</p>
  
  <pre><code>m.insert(make_pair(s1, v1));
  </code></pre>
  
  <p>Pls let me know what's wrong and what's the solution for above problem.
  After solving above problem, can i use like below to retrieve value based on key</p>
  
  <pre><code>m.find(s1);
  </code></pre>