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

Function push

extern/libcds/cds/container/fcstack.h:159–173  ·  view source on GitHub ↗

Inserts a new element at the top of stack The content of the new element initialized to a copy of \p val. */

Source from the content-addressed store, hash-verified

157 The content of the new element initialized to a copy of \p val.
158 */
159 bool push( value_type const& val )
160 {
161 auto pRec = m_FlatCombining.acquire_record();
162 pRec->pValPush = &val;
163
164 constexpr_if ( c_bEliminationEnabled )
165 m_FlatCombining.batch_combine( op_push, pRec, *this );
166 else
167 m_FlatCombining.combine( op_push, pRec, *this );
168
169 assert( pRec->is_done());
170 m_FlatCombining.release_record( pRec );
171 m_FlatCombining.internal_statistics().onPush();
172 return true;
173 }
174
175 /// Inserts a new element at the top of stack (move semantics)
176 /**

Callers

nothing calls this directly

Calls 7

assertClass · 0.85
acquire_recordMethod · 0.80
batch_combineMethod · 0.80
release_recordMethod · 0.80
is_doneMethod · 0.45
onPushMethod · 0.45
onPushMoveMethod · 0.45

Tested by

no test coverage detected