GetResultType< T > Struct Template Reference

#include <observable.h>

Detailed Description

template<typename T>
struct maxon::details::GetResultType< T >

Helper class to detect and convert to the right Result<T> for ObservableRef::Notify() This is necessary because the Notify returns Result<Data>. The Data is created locally on the stack. Now all return types which return a reference needs to convert the value into a value instead of returning a reference.

Public Types

using type = Result< T >
 
using vartype = T
 
using resulttype = Result< typename std::decay< T >::type >
 

Static Public Member Functions

static resulttype ReturnData (Data &&val)
 

Member Typedef Documentation

◆ type

using type = Result<T>

◆ vartype

using vartype = T

◆ resulttype

using resulttype = Result<typename std::decay<T>::type>

Member Function Documentation

◆ ReturnData()

static resulttype ReturnData ( Data &&  val)
static