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

Method IterableStack

include/thundersvm/util/log.h:2888–2894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

pushMethod · 0.80
popMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected