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 <queue> int main() { std::priority_queue<int> queue; assert(queue.empty()); queue.push(42); assert(!queue.empty()); queue.pop(); assert(queue.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