MCPcopy Create free account
hub / github.com/Dobiasd/FunctionalPlus / error

Function error

include/fplus/result.hpp:145–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143// Construct an error of a certain result type.
144template <typename Ok, typename Error>
145result<Ok, Error> error(const Error& error)
146{
147 result<Ok, Error> x;
148 x.ptr_error_.reset(new Error(error));
149 return x;
150}
151
152// API search type: to_maybe : Result a b -> Maybe a
153// fwd bind count: 0

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected