For this simple templated wrapper struct, a generic specialization of type traits std::formatter
exists if template type TAppendable has a specialization of AppendableTraits. In other words, all types which have been made appendable to class TAString, can be wrapped in this type and then used as arguments of function std::format
.
std::formatter
for all appendable types. With some compilers, this leads to an unresolvable ambiguity for types which have both, a specialization for std::formatter
and for AppendableTraits. Therefore, this wrapper has to be used.TAppendable | The type of the wrapped appendable. |
Definition at line 558 of file ALib.Compatibility.StdStrings.H.
#include <ALib.Compatibility.StdStrings.H>
Public Field Index: | |
const TAppendable & | appendable |
A reference to the wrapped appendable. | |
Public Method Index: | |
Appendable (const TAppendable &pAppendable) | |
const TAppendable& alib::strings::APPENDABLES::Appendable< TAppendable >::appendable |
A reference to the wrapped appendable.
Definition at line 559 of file ALib.Compatibility.StdStrings.H.
|
inline |
Constructor.
pAppendable | The wrapped appendable. |
Definition at line 563 of file ALib.Compatibility.StdStrings.H.