| 106 | } |
| 107 | |
| 108 | bool Stack::checkStackGuard() const |
| 109 | { |
| 110 | return std::all_of(static_cast<decltype(&stackSentinel)>(adjustedStorage_), |
| 111 | static_cast<decltype(&stackSentinel)>(adjustedStorage_) + stackGuardSize / sizeof(stackSentinel), |
| 112 | [](decltype(stackSentinel)& element) -> bool |
| 113 | { |
| 114 | return element == stackSentinel; |
| 115 | }); |
| 116 | } |
| 117 | |
| 118 | size_t Stack::getHighWaterMark() const |
| 119 | { |
no outgoing calls
no test coverage detected