PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
format.h File Reference

Compatibility header providing kcenon::pacs::compat::format as an alias for std::format. More...

#include <format>
#include <string>
Include dependency graph for format.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  kcenon
 
namespace  kcenon::pacs
 
namespace  kcenon::pacs::compat
 

Macros

#define PACS_HAS_STD_FORMAT   1
 
#define PACS_CONCAT(...)
 

Typedefs

template<typename... Args>
using kcenon::pacs::compat::format_string = std::format_string<Args...>
 

Detailed Description

Compatibility header providing kcenon::pacs::compat::format as an alias for std::format.

All supported compilers (GCC 13+, Clang 17+, MSVC 2022+, Apple Clang 15+) provide C++20 std::format. This header aliases it into the kcenon::pacs::compat namespace so existing call sites continue to work without modification.

Usage: #include <kcenon/pacs/compat/format.h> auto s = kcenon::pacs::compat::format("Hello, {}!", name);

Author
kcenon
Since
1.0.0

Definition in file format.h.

Macro Definition Documentation

◆ PACS_CONCAT

#define PACS_CONCAT ( ...)
Value:
(std::string() + __VA_ARGS__)

Definition at line 36 of file format.h.

◆ PACS_HAS_STD_FORMAT

#define PACS_HAS_STD_FORMAT   1

Definition at line 26 of file format.h.