MCPcopy Create free account
hub / github.com/boostorg/leaf / eq_value

Function eq_value

test/result_state_test.cpp:101–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99struct e_err { err value; };
100
101bool eq_value( leaf::result<val> & r, val v )
102{
103 leaf::result<val> const & cr = r;
104 val const & cv = v;
105 return
106 r.value() == v &&
107 cr.value() == cv &&
108 *r.operator->() == v &&
109 *cr.operator->() == cv &&
110 *r == v &&
111 *cr == cv;
112}
113
114int main()
115{

Callers 1

mainFunction · 0.85

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected