MT Core (C++)
Core library for replacing C++ standard in project usage
Loading...
Searching...
No Matches
optional.hpp File Reference
#include "../core.hpp"
#include "../traits.hpp"
#include <memory>
#include <ostream>
#include <variant>
Include dependency graph for optional.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mtcore::Optional< T * >
 Represents a pointer that may or may not be null. More...
 
struct  mtcore::Optional< T >
 Represents a value that may or may not exist (an "Optional" value) Similar concept to std::optional, but different implementation and additional nicety methods which makes this a better alternative for simple loop-based iteration (via copy_if_present and move_if_present) More...
 
struct  mtcore::Nullopt
 Placeholder value for any empty Optional (similar to std::nullopt) More...
 

Namespaces

namespace  mtcore
 Core library for C++ with Zig-related functionality.
 

Variables

constexpr auto mtcore::nullopt = Nullopt{}
 Placeholder value for an empty Optional.