Checks if the underlying container has no elements. Equivalent to: return
c
.empty().
(none)
[edit] Return valuetrue if the underlying container is empty, false otherwise.
[edit] ComplexityConstant.
[edit] Example#include <cassert> #include <stack> int main() { std::stack<int> stack; assert(stack.empty()); stack.push(42); assert(!stack.empty()); stack.pop(); assert(stack.empty()); }[edit] See also returns the number of elements
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4