MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / clear

Method clear

include/stringzilla/stringzilla.hpp:3568–3568  ·  view source on GitHub ↗

@brief Clears the string contents, but @b no deallocations happen. */

Source from the content-addressed store, hash-verified

3566
3567 /** @brief Clears the string contents, but @b no deallocations happen. */
3568 void clear() noexcept { sz_string_erase(&string_, 0, SZ_SIZE_MAX); }
3569
3570 /**
3571 * @brief Erases ( @b in-place ) the given range of characters.

Callers

nothing calls this directly

Calls 1

sz_string_eraseFunction · 0.85

Tested by

no test coverage detected