aboutsummaryrefslogtreecommitdiffstats
path: root/common/aloptional.h
blob: 45b0cf8a779cd8ebbdc39f27dc2d28fd371ca479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef AL_OPTIONAL_H
#define AL_OPTIONAL_H

#include <optional>

namespace al {

constexpr auto nullopt = std::nullopt;

template<typename T>
using optional = std::optional<T>;

using std::make_optional;

} // namespace al

#endif /* AL_OPTIONAL_H */