17#ifndef OBOE_RESULT_WITH_VALUE_H
18#define OBOE_RESULT_WITH_VALUE_H
20#include "oboe/Definitions.h"
88 explicit operator bool()
const {
return mError == oboe::Result::OK; }
100 bool operator !()
const {
return mError != oboe::Result::OK; }
124 static_assert(std::is_arithmetic<T>::value,
125 "createBasedOnSign can only be called for numeric types (int or float)");
Definition ResultWithValue.h:47
bool operator!() const
Definition ResultWithValue.h:100
T value() const
Definition ResultWithValue.h:81
ResultWithValue(T value)
Definition ResultWithValue.h:64
static ResultWithValue< T > createBasedOnSign(T numericResult)
Definition ResultWithValue.h:121
ResultWithValue(oboe::Result error)
Definition ResultWithValue.h:55
oboe::Result error() const
Definition ResultWithValue.h:73
Definition AudioClock.h:24
const char * convertToText(FromType input)
std::ostream & operator<<(std::ostream &strm, const ResultWithValue< T > &result)
Definition ResultWithValue.h:143
Result
Definition Definitions.h:172