From 1f5babf0a65c346d7876c4f4813a3dda5e8200f7 Mon Sep 17 00:00:00 2001 From: FALL1N1 <1922208+FALL1N1@users.noreply.github.com> Date: Tue, 22 Dec 2020 10:13:18 +0200 Subject: [PATCH] Core/Utils: Create std::optional helper class (#3994) --- src/common/Utilities/Optional.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/common/Utilities/Optional.h diff --git a/src/common/Utilities/Optional.h b/src/common/Utilities/Optional.h new file mode 100644 index 000000000..fc5b6e851 --- /dev/null +++ b/src/common/Utilities/Optional.h @@ -0,0 +1,15 @@ +/* + * Copyright (C) 2016+ AzerothCore , released under GNU GPL v2 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-GPL2 + * Copyright (C) 2008-2016 TrinityCore + */ + +#ifndef ACORE_OPTIONAL_H +#define ACORE_OPTIONAL_H + +#include + +//! Optional helper class to wrap optional values within. +template +using Optional = std::optional; + +#endif // ACORE_OPTIONAL_H