| 63 | }; |
| 64 | |
| 65 | template <typename T> Stack<T>::Stack() { |
| 66 | auto alloc = |
| 67 | this_worker->allocator.allocate(sizeof(Chunk) + chunkSize * sizeof(T)); |
| 68 | first = new (alloc) Chunk; |
| 69 | last = first; |
| 70 | } |
| 71 | |
| 72 | template <typename T> typename Stack<T>::StackIter Stack<T>::begin() const { |
| 73 | return StackIter(*this, this->first); |