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

Method peek

net/asio_error_handler.cpp:54–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 asio_error_handler::error peek() {
55 if(unhandled == 0) return {};
56 const auto prev_idx = (idx == 0 ? size - 1 : idx - 1);
57 return errors[prev_idx];
58 }
59
60 bool empty() const {
61 return (unhandled == 0);

Callers 1

peek_errorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected