LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
util::Result< void, E > Class Template Reference

#include <Result.hpp>

Collaboration diagram for util::Result< void, E >:
Collaboration graph

Public Member Functions

bool isOk () const noexcept
 
bool isErr () const noexcept
 
 operator bool () const noexcept
 
const E & error () const
 

Static Public Member Functions

static Result Ok (std::monostate={})
 
static Result Err (E error)
 

Private Member Functions

 Result (std::expected< void, E > data)
 

Private Attributes

std::expected< void, E > m_data
 

Constructor & Destructor Documentation

◆ Result()

template<typename E >
util::Result< void, E >::Result ( std::expected< void, E >  data)
inlineexplicitprivate

Member Function Documentation

◆ Err()

template<typename E >
static Result util::Result< void, E >::Err ( E  error)
inlinestatic

◆ error()

template<typename E >
const E & util::Result< void, E >::error ( ) const
inline

◆ isErr()

template<typename E >
bool util::Result< void, E >::isErr ( ) const
inlinenoexcept

◆ isOk()

template<typename E >
bool util::Result< void, E >::isOk ( ) const
inlinenoexcept

◆ Ok()

template<typename E >
static Result util::Result< void, E >::Ok ( std::monostate  = {})
inlinestatic

◆ operator bool()

template<typename E >
util::Result< void, E >::operator bool ( ) const
inlineexplicitnoexcept

Member Data Documentation

◆ m_data

template<typename E >
std::expected<void,E> util::Result< void, E >::m_data
private

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