| 2884 | /// @brief Implements IterableContainer and provides iterable std::stack class |
| 2885 | template<typename T, typename Container = std::deque<T>> |
| 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; |
| 2898 | } |
| 2899 | }; |
| 2900 | } // namespace workarounds |
| 2901 | #endif // defined(ELPP_STL_LOGGING) |
| 2902 | // Log message builder |
nothing calls this directly
no outgoing calls
no test coverage detected