Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::runtime::Err< E > Class Template Reference

Wrap a value as a failure result. More...

#include <result.hpp>

Public Member Functions

 Err (E value)
E & value () &
const E & value () const &
E && value () &&

Detailed Description

template<typename E>
class pulp::runtime::Err< E >

Wrap a value as a failure result.

return Result<int, std::string>(Err(std::string("bad")));

Constructor & Destructor Documentation

◆ Err()

template<typename E>
pulp::runtime::Err< E >::Err ( E value)
inlineexplicit

Member Function Documentation

◆ value() [1/3]

template<typename E>
E & pulp::runtime::Err< E >::value ( ) &
inline

◆ value() [2/3]

template<typename E>
E && pulp::runtime::Err< E >::value ( ) &&
inline

◆ value() [3/3]

template<typename E>
const E & pulp::runtime::Err< E >::value ( ) const &
inline

The documentation for this class was generated from the following file:
  • /home/runner/work/pulp/pulp/core/runtime/include/pulp/runtime/result.hpp