//# This file is a part of toml++ and is subject to the the terms of the MIT license. //# Copyright (c) Mark Gillard //# See https://github.com/marzer/tomlplusplus/blob/master/LICENSE for the full license text. // SPDX-License-Identifier: MIT #pragma once #include "preprocessor.h" TOML_DISABLE_WARNINGS; #if !TOML_HAS_CUSTOM_OPTIONAL_TYPE #include #endif TOML_ENABLE_WARNINGS; TOML_NAMESPACE_START { #if TOML_HAS_CUSTOM_OPTIONAL_TYPE template using optional = TOML_OPTIONAL_TYPE; #else /// \brief The 'optional' type used throughout the library. /// /// \remarks By default this will be an alias for std::optional, but you can change the optional type /// used by the library by defining #TOML_OPTIONAL_TYPE. template using optional = std::optional; #endif } TOML_NAMESPACE_END;