title: Is there a TryParse equivalent in C++ (gcc)?
body: <p>Is there a equivalent of TryParse in C++(gcc) ?</p>
  
  <p>I would like to parse a string which may contain (+31321) and store it as long. I know phone numbers are stored as strings and string matched but for my needs , I would like to store them as long and sometimes they might contain pluses (+). What would parse it in C++?</p>