Inserts a new element at last segment of the queue The function makes queue node in dynamic memory calling copy constructor for \p val and then it calls intrusive::SEgmentedQueue::enqueue. Returns \p true if success, \p false otherwise. */
| 246 | Returns \p true if success, \p false otherwise. |
| 247 | */ |
| 248 | bool enqueue( value_type const& val ) |
| 249 | { |
| 250 | scoped_node_ptr p( alloc_node(val)); |
| 251 | if ( base_class::enqueue( *p )) { |
| 252 | p.release(); |
| 253 | return true; |
| 254 | } |
| 255 | return false; |
| 256 | } |
| 257 | |
| 258 | /// Inserts a new element at last segment of the queue, move semantics |
| 259 | bool enqueue( value_type&& val ) |
nothing calls this directly
no test coverage detected