title: C++: binary std::string to decimal
body: <p>I want to convert 64 bit binary string to 64 bit integer (unsigned). Is there any library function to do that in C++ ?</p>
  
  <p>Edit:</p>
  
  <p>I use:</p>
  
  <pre><code>main()
  {
  std::string st = "010111000010010011000100010001110110011010110001010111010010010110100101011001010110010101101010" ;
  
  uint64_t number;
  number = strtoull (st.c_str (),NULL,2);
  cout &lt;&lt; number &lt;&lt; " " ;
  
  char ch = std::cin.get();
  cout &lt;&lt; ch ;
  
  
     return 0;
  }
  </code></pre>