Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
OptionalType.h
Go to the documentation of this file.
1#ifndef Podd_OptionalType_h_
2#define Podd_OptionalType_h_
3
5// //
6// Podd::optional //
7// //
8// Support for optional type for pre-C++17 compilers //
9// //
11
12#include "DataType.h"
13
14#if __cplusplus >= 201703L
15#include <optional>
16template <typename T>
17using Optional_t = std::optional<T>;
18#else
19#include "optional.hpp"
20template <typename T>
24
25#endif /* __cplusplus >= 201703L */
26
30
31#endif //Podd_OptionalType_h_
constexpr optional< typename decay< T >::type > make_optional(T &&v)
constexpr nullopt_t nullopt
Definition optional.hpp:268