MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / IterableStack

Class IterableStack

include/thundersvm/util/log.h:2886–2899  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2884/// @brief Implements IterableContainer and provides iterable std::stack class
2885template<typename T, typename Container = std::deque<T>>
2886class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected