All Regions
Argentina
Australia
Austria
Belgium (fr)
Belgium (nl)
Brazil
Bulgaria
Canada (en)
Canada (fr)
Catalonia
Chile
China
Colombia
Croatia
Czech Republic
Denmark
Estonia
Finland
France
Germany
Greece
Hong Kong
Hungary
Iceland
India (en)
Indonesia (en)
Ireland
Israel (en)
Italy
Japan
Korea
Latvia
Lithuania
Malaysia (en)
Mexico
Netherlands
New Zealand
Norway
Pakistan (en)
Peru
Philippines (en)
Poland
Portugal
Romania
Russia
Saudi Arabia
Singapore
Slovakia
Slovenia
South Africa
Spain (ca)
Spain (es)
Sweden
Switzerland (de)
Switzerland (fr)
Taiwan
Thailand (en)
Turkey
US (English)
US (Spanish)
Ukraine
United Kingdom
Vietnam (en)
Any Time
Past Day
Past Week
Past Month
Past Year
std::basic_string<CharT,Traits,Allocator>:: replace_with_range - Reference
en.cppreference.com/w/cpp/string/basic_string/replace_with_range
2023-10-26T00:00:00.0000000
Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/string/basic_string/replace_with_range&oldid=161502"
std::basic_string - cppreference.com
en.cppreference.com/w/cpp/string/basic_string
2024-11-10T00:00:00.0000000
The class template basic_string stores and manipulates sequences of character-like objects, which are non-array objects of TrivialType and StandardLayoutType.The class is dependent neither on the character type nor on the nature of operations on that type. The definitions of the operations are supplied via the Traits template parameter - a specialization of std::char_traits or a compatible ...
std::basic_string<CharT,Traits,Allocator>:: replace - Reference
en.cppreference.com/w/cpp/string/basic_string/replace
2023-08-08T00:00:00.0000000
10) Those characters are replaced with the characters in the
range
[first2, last2) as if by replace (first, last, basic_string (first2, last2, get_allocator ())). 11) Those characters are replaced with the characters in ilist .
std::basic_string<CharT,Traits,Allocator>:: basic_string - Reference
en.cppreference.com/w/cpp/string/basic_string/basic_string
2024-12-11T00:00:00.0000000
10) Implicitly converts t to a string view sv as if by std:: basic_string_view < CharT, Traits > sv = t;, then constructs a string as if by basic_string (sv. substr (pos, n), alloc). This overload participates in overload resolution only if std:: is_convertible_v < const StringViewLike & ,
std::basic_string<CharT,Traits,Allocator>:: ~basic_string - Reference
en.cppreference.com/w/cpp/string/basic_string/~basic_string
2024-10-18T00:00:00.0000000
Destructs the basic_string.The destructors of the elements are called and the used storage is deallocated. [] ComplexitTypically constant (formally linear).
deduction guides for std::basic_string - cppreference.com
en.cppreference.com/w/cpp/string/basic_string/deduction_guides
2025-04-25T00:00:00.0000000
4) This deduction guide is provided for std::basic_string to allow deduction from a std::from_range_t tag and an input_range. Note: the extent to which the library determines that a type does not satisfy LegacyInputIterator is unspecified, except that as a minimum integral types do not qualify as input iterators.
std::basic_string_view - cppreference.com
en.cppreference.com/w/cpp/string/basic_string_view
2024-07-12T00:00:00.0000000
The class template basic_string_view describes an object that can refer to a constant contiguous sequence of CharT with the first element of the sequence at position zero.. For a basic_string_view str, pointers, iterators, and references to elements of str are invalidated when an operation invalidates a pointer in the
range
[str. data (), str. data + str. size ()).
std::ranges:: replace, std::ranges:: replace_if - Reference
en.cppreference.com/w/cpp/algorithm/ranges/replace
2025-02-14T00:00:00.0000000
The function-like entities described on this page are algorithm function objects (informally known as niebloids), that is: . Explicit template argument lists cannot be specified when calling any of them. None of them are visible to argument-dependent lookup.; When any of them are found by normal unqualified lookup as the name to the left of the function-call operator, argument-dependent lookup ...
std::basic_string<CharT,Traits,Allocator>:: assign_range - Reference
en.cppreference.com/w/cpp/string/basic_string/assign_range
2023-10-28T00:00:00.0000000
Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/string/basic_string/assign_range&oldid=161643"
std::basic_string<CharT,Traits,Allocator>:: operator= - Reference
en.cppreference.com/w/cpp/string/basic_string/operator=
2024-05-25T00:00:00.0000000
ch - value to initialize characters of the string with str - string to be used as source to initialize the string with s - pointer to a null-terminated character string to use as source to initialize the string with
Feedback