Arbiter
Dependency manager library that supports decentralization
|
Expresses shared ownership of an opaque user-provided value type, which was originally described in an ArbiterUserValue. More...
Public Member Functions | |
SharedUserValue ()=default | |
SharedUserValue (ArbiterUserValue value) | |
void * | data () noexcept |
const void * | data () const noexcept |
std::string | description () const |
size_t | hash () const |
bool | operator!= (const SharedUserValue &other) const |
bool | operator< (const SharedUserValue &other) const |
bool | operator<= (const SharedUserValue &other) const |
bool | operator== (const SharedUserValue &other) const |
bool | operator> (const SharedUserValue &other) const |
bool | operator>= (const SharedUserValue &other) const |
Expresses shared ownership of an opaque user-provided value type, which was originally described in an ArbiterUserValue.
Owner
is a phantom type used to associate the SharedUserValue with its usage in a particular class. This helps prevent two SharedUserValue instances from being compared if they represent conceptually different things (which might crash user code).
|
default |
|
explicit |
|
noexcept |
|
noexcept |
std::string Arbiter::SharedUserValue< Owner >::description | ( | ) | const |
size_t Arbiter::SharedUserValue< Owner >::hash | ( | ) | const |
bool Arbiter::SharedUserValue< Owner >::operator!= | ( | const SharedUserValue< Owner > & | other | ) | const |
bool Arbiter::SharedUserValue< Owner >::operator< | ( | const SharedUserValue< Owner > & | other | ) | const |
bool Arbiter::SharedUserValue< Owner >::operator<= | ( | const SharedUserValue< Owner > & | other | ) | const |
bool Arbiter::SharedUserValue< Owner >::operator== | ( | const SharedUserValue< Owner > & | other | ) | const |
bool Arbiter::SharedUserValue< Owner >::operator> | ( | const SharedUserValue< Owner > & | other | ) | const |
bool Arbiter::SharedUserValue< Owner >::operator>= | ( | const SharedUserValue< Owner > & | other | ) | const |