evan 2026.1.4
Evan
Loading...
Searching...
No Matches
evan::Result< T > Struct Template Reference

Small result wrapper used by helpers that must return both a status and a value (e.g. createImageView). More...

#include <headers/evan/Error.hpp>

Public Attributes

Error code = Error::Ok
 
T value {}
 

Detailed Description

template<typename T>
struct evan::Result< T >

Small result wrapper used by helpers that must return both a status and a value (e.g. createImageView).

Template Parameters
TThe value type (must be default-constructible, which Vulkan handles and std::vector/std::shared_ptr satisfy).

Definition at line 89 of file Error.hpp.

Member Data Documentation

◆ code

template<typename T >
Error evan::Result< T >::code = Error::Ok

Definition at line 90 of file Error.hpp.

◆ value

template<typename T >
T evan::Result< T >::value {}

Definition at line 91 of file Error.hpp.


The documentation for this struct was generated from the following file: