MCPcopy Create free account
hub / github.com/a2flo/floor / pop

Method pop

net/asio_error_handler.cpp:45–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 }
44
45 asio_error_handler::error pop() {
46 idx = (idx == 0 ? size - 1 : idx - 1);
47 if(unhandled > 0) --unhandled;
48 else {
49 log_error("error underflow (no errors are currently unhandled)");
50 }
51 return errors[idx];
52 }
53
54 asio_error_handler::error peek() {
55 if(unhandled == 0) return {};

Callers 1

get_errorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected