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

Method enqueue_with

extern/libcds/cds/container/basket_queue.h:325–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323 */
324 template <typename Func>
325 bool enqueue_with( Func f )
326 {
327 scoped_node_ptr p( alloc_node());
328 f( p->m_value );
329 if ( base_class::enqueue( *p )) {
330 p.release();
331 return true;
332 }
333 return false;
334 }
335
336 /// Synonym for \p enqueue() function
337 bool push( value_type const& val )

Callers

nothing calls this directly

Calls 3

alloc_nodeFunction · 0.70
enqueueFunction · 0.70
releaseMethod · 0.45

Tested by

no test coverage detected