2022-05-16 17:32:25 -07:00
|
|
|
// Formatting library for C++ - formatters for standard library types
|
|
|
|
|
//
|
|
|
|
|
// Copyright (c) 2012 - present, Victor Zverovich
|
|
|
|
|
// All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
// For the license information refer to format.h.
|
|
|
|
|
|
|
|
|
|
#ifndef FMT_STD_H_
|
|
|
|
|
#define FMT_STD_H_
|
|
|
|
|
|
2022-05-17 16:31:06 -07:00
|
|
|
#include <thread>
|
|
|
|
|
|
|
|
|
|
#include "ostream.h"
|
2022-05-17 14:23:56 -07:00
|
|
|
|
|
|
|
|
#if FMT_HAS_INCLUDE(<version>)
|
|
|
|
|
# include <version>
|
|
|
|
|
#endif
|
2022-05-16 17:32:25 -07:00
|
|
|
|
|
|
|
|
#ifdef __cpp_lib_filesystem
|
|
|
|
|
# include <filesystem>
|
|
|
|
|
|
2022-05-18 18:04:47 +05:00
|
|
|
FMT_BEGIN_NAMESPACE
|
|
|
|
|
template <> struct formatter<std::filesystem::path> : ostream_formatter {};
|
|
|
|
|
FMT_END_NAMESPACE
|
2022-05-16 17:32:25 -07:00
|
|
|
#endif
|
|
|
|
|
|
2022-05-17 16:31:06 -07:00
|
|
|
FMT_BEGIN_NAMESPACE
|
|
|
|
|
template <> struct formatter<std::thread::id> : ostream_formatter {};
|
|
|
|
|
FMT_END_NAMESPACE
|
|
|
|
|
|
2022-05-16 17:32:25 -07:00
|
|
|
#endif // FMT_STD_H_
|