Dire
Complete cross-platform solution for data and user directories discovery.
Loading...
Searching...
No Matches
defines.hpp
Go to the documentation of this file.
1#pragma once
2
3// This is intentionally a transitive include
4
5#include <filesystem>
6
7#if defined(DIRE_USE_TL_LIBS)
8 #include <tl/optional.hpp>
9#else
10 #include <optional>
11#endif
12
13namespace dire
14{
15
16using Path = std::filesystem::path;
17
18#if defined(DIRE_USE_TL_LIBS)
19
20template<typename T>
21using Optional = tl::optional<T>;
22
23#else
24
25template<typename T>
26using Optional = std::optional<T>;
27
28#endif
29
30} // namespace dire
Definition base.hpp:6
std::optional< T > Optional
Definition defines.hpp:26
std::filesystem::path Path
Definition defines.hpp:16