powered by
Check, if a container is empty, i.e. does not contain elements.
empty(x)
Returns TRUE, if the container is empty, and FALSE otherwise.
TRUE
FALSE
A cppcontainers object.
cppcontainers
v <- cpp_vector(4:6) v # 4 5 6 clear(v) empty(v) # [1] TRUE
Run the code above in your browser using DataLab