Inserts a new element at the top of stack The content of the new element initialized to a copy of \p val. */
| 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 | /** |
nothing calls this directly
no test coverage detected