Skip to content

std::String::slice<Char, Traits>::is_empty

is_empty

Indicates whether the slice has no data, crucial for control flow

Signature

is_empty(self) -> bool

Specifiers

  • constexpr
  • const
  • noexcept

Attributes

  • nodiscard

See Also

Back to slice<Char, Traits>