Debug-only guard that checks the context is unchanged across a scope.
Declared in <folly/io/async/Request.h>
class [[maybe_unused]] DCheckRequestContextRestoredGuard;
This entity may be unused, and the compiler will not warn about it.
Ensures that the current request context at destruction is the same as the one at construction.
| Name | Description |
|---|---|
DCheckRequestContextRestoredGuard [constructor] | Constructors |
~DCheckRequestContextRestoredGuard [destructor] | Checks the context matches the captured one and destroys the guard. |
operator= | Assignment operators |