MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / pop_with

Method pop_with

extern/libcds/cds/container/treiber_stack.h:338–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336 */
337 template <typename Func>
338 bool pop_with( Func f )
339 {
340 node_type * p = base_class::pop();
341 if ( !p )
342 return false;
343
344 f( p->m_value );
345 retire_node( p );
346
347 return true;
348 }
349
350 /// Check if stack is empty
351 bool empty() const

Callers

nothing calls this directly

Calls 2

popFunction · 0.70
retire_nodeFunction · 0.50

Tested by

no test coverage detected