| 2886 | class IterableStack : public IterableContainer<T, Container>, public std::stack<T, Container> { |
| 2887 | public: |
| 2888 | IterableStack(std::stack<T, Container> stack_) { |
| 2889 | std::size_t count_ = 0; |
| 2890 | while (++count_ < base::consts::kMaxLogPerContainer && !stack_.empty()) { |
| 2891 | this->push(stack_.top()); |
| 2892 | stack_.pop(); |
| 2893 | } |
| 2894 | } |
| 2895 | private: |
| 2896 | inline Container& getContainer(void) { |
| 2897 | return this->c; |