NeBuild dev
Loading...
Searching...
No Matches
std_optional.hpp
Go to the documentation of this file.
1//# This file is a part of toml++ and is subject to the the terms of the MIT license.
2//# Copyright (c) Mark Gillard <mark.gillard@outlook.com.au>
3//# See https://github.com/marzer/tomlplusplus/blob/master/LICENSE for the full license text.
4// SPDX-License-Identifier: MIT
5#pragma once
6
7#include "preprocessor.hpp"
9#if !TOML_HAS_CUSTOM_OPTIONAL_TYPE
10#include <optional>
11#endif
13
15{
16#if TOML_HAS_CUSTOM_OPTIONAL_TYPE
17
18 template <typename T>
19 using optional = TOML_OPTIONAL_TYPE<T>;
20
21#else
22
27 template <typename T>
28 using optional = std::optional<T>;
29
30#endif
31}
TOML_NAMESPACE_START
Definition std_optional.hpp:15
TOML_ENABLE_WARNINGS
Definition std_optional.hpp:12
TOML_DISABLE_WARNINGS
Definition std_optional.hpp:8
TOML_NAMESPACE_END
Definition std_optional.hpp:32