This is a type-traits functor that allows making custom types "appendable" to objects of type AString.
Specializations of this struct have to implement operator(), which is invoked by method AString::Append, when an instance of the type in question is passed.
For user-defined string-types that get adopted to ALib string system using a specialization of struct ArrayTraits, no specialization of this functor is needed, because the method AString::Append will accept such types likewise.
TAppendable | The type that should be made compatible with method Append(const TAppendable&). |
TChar | The character type of the target AString. |
TAllocator | The allocator type of the target AString. |
Definition at line 51 of file tastring.inl.
Public Method Index: | |
void | operator() (TAString< TChar > &target, const TAppendable &src) |
template ALIB_DLL void alib::strings::APPENDABLES::strings::AppendableTraits::operator() | ( | TAString< TChar > & | target, |
const TAppendable & | src ) |
This operator is invoked on a temporary object of this type by TAString::Append(const TAppendable&), when an object of type TAppendable is passed.
Usually, specializations of this operator append a string representation of src to target. Special "appendable types" might modify target in other, arbitrary ways.
target | The target string. |
src | The source object. |
Definition at line 449 of file tastringimpl.inl.