MCPcopy Create free account
hub / github.com/boostorg/asio / contains

Method contains

include/boost/asio/detail/call_stack.hpp:94–104  ·  view source on GitHub ↗

Determine whether the specified owner is on the stack. Returns address of key if present, 0 otherwise.

Source from the content-addressed store, hash-verified

92 // Determine whether the specified owner is on the stack. Returns address of
93 // key if present, 0 otherwise.
94 static Value* contains(Key* k)
95 {
96 context* elem = top_;
97 while (elem)
98 {
99 if (elem->key_ == k)
100 return elem->value_;
101 elem = elem->next_;
102 }
103 return 0;
104 }
105
106 // Obtain the value at the top of the stack.
107 static Value* top()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected