Inserts a new element at the beginning of the deque container The function always returns \p true */
| 172 | The function always returns \p true |
| 173 | */ |
| 174 | bool push_front( |
| 175 | value_type const& val ///< Value to be copied to inserted element |
| 176 | ) |
| 177 | { |
| 178 | auto pRec = m_FlatCombining.acquire_record(); |
| 179 | pRec->pValPush = &val; |
| 180 | |
| 181 | constexpr_if ( c_bEliminationEnabled ) |
| 182 | m_FlatCombining.batch_combine( op_push_front, pRec, *this ); |
| 183 | else |
| 184 | m_FlatCombining.combine( op_push_front, pRec, *this ); |
| 185 | |
| 186 | assert( pRec->is_done()); |
| 187 | m_FlatCombining.release_record( pRec ); |
| 188 | m_FlatCombining.internal_statistics().onPushFront(); |
| 189 | return true; |
| 190 | } |
| 191 | |
| 192 | /// Inserts a new element at the beginning of the deque container (move semantics) |
| 193 | /** |