template<typename TChar>
struct alib::boxing::FAppend< TChar >
Implementations of this box-function write the content of the data stored in the box to the given AString object.
A default implementation is registered. This writes out the raw value of the first uinteger
field of the boxe's Placeholder in hexadecimal format. For pointer types, such raw value reflect the memory address of the boxable. In debug-compilations, in addition the type name of the boxed value is written.
Templated static method Appendable can be used to avoid implementations for those mapped types that specialized type traits functor T_Append that makes values of the type usable with AString::Append already.
- Note
- This is a templated (!) function declaration that defines three different box-functions at once, namely FAppend<character>, FAppend<complementChar> and FAppend<strangeChar>.
This box-function is usually invoked only indirectly, by "appending" a box to an AString, as shown here:
Box box= 42;
AString text;
text << "The answer is: "; // appends a string literal
text << box; // translates to: box.Call<FAppend<character>>( text )
- Availability
- This box-function is available only if module ALib Strings is included in the ALib Distribution .
- See also
-
- Template Parameters
-
TChar | The character type of the destination AString given with parameter target . |
Definition at line 427 of file functions.inl.