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

Function push_back

extern/libcds/cds/container/fcdeque.h:218–234  ·  view source on GitHub ↗

Inserts a new element at the end of the deque container The function always returns \p true */

Source from the content-addressed store, hash-verified

216 The function always returns \p true
217 */
218 bool push_back(
219 value_type const& val ///< Value to be copied to inserted element
220 )
221 {
222 auto pRec = m_FlatCombining.acquire_record();
223 pRec->pValPush = &val;
224
225 constexpr_if ( c_bEliminationEnabled )
226 m_FlatCombining.batch_combine( op_push_back, pRec, *this );
227 else
228 m_FlatCombining.combine( op_push_back, pRec, *this );
229
230 assert( pRec->is_done());
231 m_FlatCombining.release_record( pRec );
232 m_FlatCombining.internal_statistics().onPushBack();
233 return true;
234 }
235
236 /// Inserts a new element at the end of the deque container (move semantics)
237 /**

Callers 3

push_backMethod · 0.70
pushMethod · 0.50
pushMethod · 0.50

Calls 7

assertClass · 0.85
acquire_recordMethod · 0.80
batch_combineMethod · 0.80
release_recordMethod · 0.80
is_doneMethod · 0.45
onPushBackMethod · 0.45
onPushBackMoveMethod · 0.45

Tested by 2

pushMethod · 0.40
pushMethod · 0.40