#include <format_parameters.hpp>
template<typename FormatContext>
class fly::detail::BasicFormatParameter< FormatContext >
A container to hold a single type-erased format parameter.
- Author
- Timothy Flynn (trfly.nosp@m.nn89.nosp@m.@pm.m.nosp@m.e)
- Version
- April 4, 2021
◆ BasicFormatParameter() [1/7]
template<typename FormatContext >
Constructor. Initialize the format parameter to an invalid state.
◆ BasicFormatParameter() [2/7]
template<typename FormatContext >
template<fly::FormattableString T>
|
explicitconstexprnoexcept |
Constructor. Initialize the format parameter to store a type-erased user-defined value.
- Template Parameters
-
- Parameters
-
value | The user-defined value. |
◆ BasicFormatParameter() [3/7]
template<typename FormatContext >
template<fly::FormattableString T>
|
explicitconstexprnoexcept |
Constructor. Initialize the format parameter to store a type-erased string from any string-like value.
- Template Parameters
-
- Parameters
-
value | The string-like value. |
◆ BasicFormatParameter() [4/7]
template<typename FormatContext >
template<fly::FormattableBoolean T>
|
explicitconstexprnoexcept |
Constructor. Initialize the format parameter to store a pointer value.
- Template Parameters
-
- Parameters
-
◆ BasicFormatParameter() [5/7]
template<typename FormatContext >
template<fly::FormattableIntegral T>
|
explicitconstexprnoexcept |
Constructor. Initialize the format parameter to store an integral value.
- Template Parameters
-
- Parameters
-
◆ BasicFormatParameter() [6/7]
template<typename FormatContext >
template<fly::FormattableFloatingPoint T>
|
explicitconstexprnoexcept |
Constructor. Initialize the format parameter to store a floating-point value.
- Template Parameters
-
T | The floating-point type. |
- Parameters
-
value | The floating-point value. |
◆ BasicFormatParameter() [7/7]
template<typename FormatContext >
template<fly::FormattableBoolean T>
|
explicitconstexprnoexcept |
Constructor. Initialize the format parameter to store a boolean value.
- Template Parameters
-
- Parameters
-
◆ format()
template<typename FormatContext >
Apply the type-erased formatting function to the stored format parameter.
- Parameters
-
parse_context | The context holding the format parsing state. |
context | The context holding the formatting state. |
specifier | The replacement field to be replaced. |
◆ operator bool()
template<typename FormatContext >
- Returns
- True if this format parameter is holding a valid type.
◆ visit()
template<typename FormatContext >
template<typename Visitor >
Apply the provided visitor to the stored format parameter.
- Template Parameters
-
Visitor | Type of the visitor to invoke. |
- Parameters
-
visitor | The visitor to invoke. |
The documentation for this class was generated from the following file: