mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 21:26:23 +00:00
Core/Utils: Create std::optional helper class (#3994)
This commit is contained in:
15
src/common/Utilities/Optional.h
Normal file
15
src/common/Utilities/Optional.h
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-GPL2
|
||||
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
|
||||
*/
|
||||
|
||||
#ifndef ACORE_OPTIONAL_H
|
||||
#define ACORE_OPTIONAL_H
|
||||
|
||||
#include <optional>
|
||||
|
||||
//! Optional helper class to wrap optional values within.
|
||||
template <class T>
|
||||
using Optional = std::optional<T>;
|
||||
|
||||
#endif // ACORE_OPTIONAL_H
|
||||
Reference in New Issue
Block a user