MCPcopy Create free account
hub / github.com/apache/brpc / reset

Method reset

src/butil/containers/optional.h:377–382  ·  view source on GitHub ↗

Destroys any contained value if the `optional` is not empty.

Source from the content-addressed store, hash-verified

375
376 // Destroys any contained value if the `optional` is not empty.
377 void reset() {
378 if (_engaged) {
379 _storage.Destroy();
380 _engaged = false;
381 }
382 }
383
384 // Constructs the contained value in-place.
385 // Return a reference to the new contained value.

Callers 3

optionalMethod · 0.45
swapMethod · 0.45
clear_and_reset_poolMethod · 0.45

Calls 1

DestroyMethod · 0.45

Tested by

no test coverage detected