SGCT
master (487fac4)
Simple Graphics Cluster Toolkit
Toggle main menu visibility
Loading...
Searching...
No Matches
format.h
Go to the documentation of this file.
1
/*****************************************************************************************
2
* SGCT *
3
* Simple Graphics Cluster Toolkit *
4
* *
5
* Copyright (c) 2012-2026 *
6
* For conditions of distribution and use, see copyright notice in LICENSE.md *
7
****************************************************************************************/
8
9
#ifndef __SGCT__FMT__H__
10
#define __SGCT__FMT__H__
11
12
#include <filesystem>
13
#include <format>
14
15
template
<>
16
struct
std::formatter<std::filesystem::path> {
17
constexpr
auto
parse
(std::format_parse_context& ctx) {
18
return
ctx.begin();
19
}
20
21
auto
format
(
const
std::filesystem::path& path, std::format_context& ctx)
const
{
22
return
std::format_to(ctx.out(),
"{}"
, path.string());
23
}
24
};
25
26
#endif
// __SGCT__FMT__H__
std::formatter< std::filesystem::path >::format
auto format(const std::filesystem::path &path, std::format_context &ctx) const
Definition
format.h:21
std::formatter< std::filesystem::path >::parse
constexpr auto parse(std::format_parse_context &ctx)
Definition
format.h:17
sgct
format.h
Generated by
1.18.0