String Utilities | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Functions | |
| template<typename CharT, class Traits, class Allocator> | |
| std::basic_string< CharT, Traits, Allocator > & | operator<< (std::basic_string< CharT, Traits, Allocator > &out_str, const CharT *in_str) |
| template<typename CharT, class Traits, class Allocator> | |
| std::basic_string< CharT, Traits, Allocator > & | operator<< (std::basic_string< CharT, Traits, Allocator > &out, const std::basic_string< CharT, Traits, Allocator > &in) |
Function Documentation
| typename std::basic_string< CharT, Traits, Allocator > & operator<< | ( | std::basic_string< CharT, Traits, Allocator > & | out_str, | |
| const CharT * | in_str | |||
| ) |
Enables operator<< for appending an NTBS to a string.
- Parameters:
-
out_str string to be appended in_str NTBS to append to out
- Returns:
out_strwithin_strappended to it.
- Note:
- To guarantee amortized constant time growth on the string we double the size of the capacity if growing is necessary.
Definition at line 52 of file string.hpp.
| typename std::basic_string< CharT, Traits, Allocator > & operator<< | ( | std::basic_string< CharT, Traits, Allocator > & | out, | |
| const std::basic_string< CharT, Traits, Allocator > & | in | |||
| ) |
Enables operator<< for appending one string to another.
- Parameters:
-
out string to be appended in string to append to out
- Returns:
outwithinappended to it.
- Note:
- To guarantee amortized constant time growth on the string we double the size of the capacity if growing is necessary.
Definition at line 37 of file string.hpp.
