Yes, this is what the standard requires from it for empty() for any container.
ยง 23.2.1 Table 96 of the C ++ 11 standard states:
+----------+---------------+----------------------+ |Expression| Return Type | Operational Semantics| |----------|---------------|----------------------| |a.empty() |Convertible |a.begin() == a.end() | | |to bool | | | | | | +-------------------------------------------------+
Rapptz Jul 22 '13 at 19:53 on 2013-07-22 19:53
source share