title: C++ Equivalent of .split()
body: <p>I want to split a  string into an array of strings and I need to split them whenever a <code>','</code> is encountered.</p>
  
  <p>In Java, we can use:-</p>
  
  <pre><code>String[] splitArray = input.split(",");
  </code></pre>
  
  <p>Is there any such a feature in C++ or I'll have to stick with the traditional way of doing this using a loop?</p>
  
  <p>The solutions provided at a similar Ques. at StackOverflow Do not work for any delimiter other than space.</p>