std::string(size_t , char ) constructor: code example

Example 1: std::string(size_t , char ) constructor:

string (size_t n, char c);

Example 2: std::string(size_t , char ) constructor:

string (const char* s, size_t n);

Example 3: std::string(size_t , char ) constructor:

string (const string& str, size_t pos, size_t len = npos);

Example 4: std::string(size_t , char ) constructor:

string (const string& str);

Example 5: std::string(size_t , char ) constructor:

template <class InputIterator>
  string  (InputIterator first, InputIterator last);