MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
mxvk_wrapper.hpp File Reference

Type-safe nullable pointer wrapper inspired by Rust's Option<T>. More...

#include "mxvk_exception.hpp"
#include <format>
#include <optional>
#include <string>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

class  mxvk::Wrapper< T >
 A nullable smart wrapper around a raw pointer. More...

Namespaces

namespace  mx
namespace  mxvk
 Utilities for loading and saving PNG images.

Concepts

concept  mxvk::WrapType
 Constrains Wrapper<T> to pointer types only.

Typedefs

template<mxvk::WrapType T>
using mx::Wrapper = mxvk::Wrapper<T>

Detailed Description

Type-safe nullable pointer wrapper inspired by Rust's Option<T>.

Wrapper<T> holds an optional pointer value and provides panic-on-null accessors similar to Rust's unwrap() / expect() semantics.

Definition in file mxvk_wrapper.hpp.