Skip to content

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

size

Returns the length of the slice’s data, essential for bounds checking and iteration

Signature

size(self) -> size_t

Specifiers

  • constexpr
  • const
  • noexcept

Attributes

  • nodiscard

See Also

Back to slice<Char, Traits>