Home   Manual   Type Index   Symbol Index   Topics Index

std::is_empty

checks whether a collection contains any items

Description

The following invariant should always hold:

std::is_empty(collection) == (std::length_of(collection) == 0)

See also

std::length_of   returns the number of items within a collection

Implemented by

std_types::list  as  std_types::list/std::is_empty
std_types::octet_string  as  std_types::octet_string/std::is_empty

Topics

Strings