| 31 | template <class T, class ALLOCATOR> |
| 32 | template <class V> |
| 33 | BufferStatus Buffer<T,ALLOCATOR>::push(V&& value) |
| 34 | { |
| 35 | if (_isClosed) |
| 36 | { |
| 37 | return BufferStatus::Closed; |
| 38 | } |
| 39 | _buffer.push_back(std::forward<V>(value)); |
| 40 | return BufferStatus::DataPosted; |
| 41 | } |
| 42 | |
| 43 | template <class T, class ALLOCATOR> |
| 44 | BufferStatus Buffer<T,ALLOCATOR>::pull(T& value) |