R-Type  2
Doom but in better
Loading...
Searching...
No Matches
UnCast.hpp File Reference
#include <any>
#include <string>
#include <optional>
#include <type_traits>
#include "Log.hpp"
#include "LogMacros.hpp"
#include "CustomExceptions.hpp"
Include dependency graph for UnCast.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Utilities
 

Functions

template<typename T , typename Exception = CustomExceptions::InvalidType>
std::optional< T > Utilities::unCast (const std::any &classNode, const bool raiseOnError=true, const std::string customErrorMessage="")
 Casts the content of a std::any back to its original type.