std::forward_list::empty
De cppreference.com
<tbody>
</tbody>
<tbody class="t-dcl-rev ">
</tbody><tbody>
</tbody>
bool empty() const noexcept; |
(desde C++11) (hasta C++20) |
|
[[nodiscard]] bool empty() const noexcept; |
(desde C++20) | |
Comprueba si el contenedor no tiene elementos, es decir, si begin() == end().
Parámetros
(Ninguno)
Valor de retorno
true si el contenedor está vacío; de lo contrario, false.
Complejidad
Constante.