String Utilities
[Libraries]


Detailed Description

These operators were moved to namespace std because string is in this namespace. Apparently sometimes CW 9.1 cannot find the correct operator without using ADL.


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_str with in_str appended 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:
out with in appended 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.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google