![]() ![]() first, last Input iterators to the initial and final positions in a range. ![]() s Pointer to an array of characters (such as a c-string). Sublen Length of the substring to be copied (if the string is shorter, as many characters as possible are copied).Ī value of string::npos indicates all characters until the end of str. If this is greater than str's length, it throws out_of_range. subpos Position of the first character in str that is copied to the object as replacement. Len Number of characters to replace (if the string is shorter, as many characters as possible are replaced).Ī value of string::npos indicates all characters until the end of the string. If this is greater than the string length, it throws out_of_range. Pos Position of the first character to be replaced. Parameters str Another string object, whose value is copied. (7) initializer list Copies each of the characters in il, in the same order. (6) range Copies the sequence of characters in the range [first,last), in the same order. (5) fill Replaces the portion of the string by n consecutive copies of character c. (4) buffer Copies the first n characters from the array of characters pointed by s. (3) c-string Copies the null-terminated character sequence (C-string) pointed by s. (2) substring Copies the portion of str that begins at the character position subpos and spans sublen characters (or until the end of str, if either str is too short or if sublen is string::npos). Replaces the portion of the string that begins at character pos and spans len characters (or the part of the string in the range between [i1,i2)) by new contents:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |