ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::strings::APPENDABLES::Appendable< TAppendable > Struct Template Reference

Description:

template<typename TAppendable>
struct alib::strings::APPENDABLES::Appendable< TAppendable >

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.

Note
Unfortunately, it is not possible with all compilers to generically specialize 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.
See also
Chapter 9. C++20 std::format of the Programmer's Manual of the module ALib Strings.
Template Parameters
TAppendableThe 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)
 

Field Details:

◆ appendable

template<typename TAppendable>
const TAppendable& alib::strings::APPENDABLES::Appendable< TAppendable >::appendable

A reference to the wrapped appendable.

Definition at line 559 of file ALib.Compatibility.StdStrings.H.

Constructor(s) / Destructor Details:

◆ Appendable()

template<typename TAppendable>
alib::strings::APPENDABLES::Appendable< TAppendable >::Appendable ( const TAppendable< TAppendable > & pAppendable)
inline

Constructor.

Parameters
pAppendableThe wrapped appendable.

Definition at line 563 of file ALib.Compatibility.StdStrings.H.


The documentation for this struct was generated from the following file: