Go to the source code of this file.
|
| template<class... args_t> |
| requires format_acceptable_args_c< char, args_t... > cstring | qx::format (const QX_FMT_NS::format_string< std::type_identity_t< args_t >... > sFormat, args_t &&... args) |
| | std::format / fmt::format wrapper that returns qx::string More...
|
| |
| template<class... args_t> |
| requires format_acceptable_args_c< wchar_t, args_t... > wstring | qx::format (const QX_FMT_NS::wformat_string< std::type_identity_t< args_t >... > sFormat, args_t &&... args) |
| | std::format / fmt::format wrapper that returns qx::wstring More...
|
| |
| template<class T , class char_t = char_type, class traits_t = string_traits::traits<char_t>> |
| basic_string< char_t, traits_t > | qx::convert_to_string (const T &value) |
| | Converts any type that has a std::formatter overload to qx::basic_string. More...
|
| |
- Author
- Khrapov
- Date
- 27.03.2026
- Copyright
- © Nick Khrapov, 2026. All right reserved.
Definition in file format.h.
◆ convert_to_string()
template<class T , class char_t = char_type, class traits_t = string_traits::traits<char_t>>
| basic_string<char_t, traits_t> qx::convert_to_string |
( |
const T & |
value | ) |
|
Converts any type that has a std::formatter overload to qx::basic_string.
- Template Parameters
-
| T | - object type |
| char_t | - char type (char, wchar_t, etc) |
| traits_t | - char traits. |
- See also
- string_traits.h
- Parameters
-
- Return values
-
Definition at line 57 of file format.h.
◆ format() [1/2]
template<class... args_t>
| requires format_acceptable_args_c<char, args_t...> cstring qx::format |
( |
const QX_FMT_NS::format_string< std::type_identity_t< args_t >... > |
sFormat, |
|
|
args_t &&... |
args |
|
) |
| |
std::format / fmt::format wrapper that returns qx::string
- Template Parameters
-
| args_t | - format arguments types |
- Parameters
-
| sFormat | - format string |
| args | - template parameter pack |
- Return values
-
Definition at line 25 of file format.h.
◆ format() [2/2]
template<class... args_t>
| requires format_acceptable_args_c<wchar_t, args_t...> wstring qx::format |
( |
const QX_FMT_NS::wformat_string< std::type_identity_t< args_t >... > |
sFormat, |
|
|
args_t &&... |
args |
|
) |
| |
std::format / fmt::format wrapper that returns qx::wstring
- Template Parameters
-
| args_t | - format arguments types |
- Parameters
-
| sFormat | - format string |
| args | - template parameter pack |
- Return values
-
Definition at line 41 of file format.h.