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

Method try_clear

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

* @brief Clears the contents of the string and resets its length to 0. * @return Always returns `true` as this operation cannot fail under normal conditions. */

Source from the content-addressed store, hash-verified

3466 * @return Always returns `true` as this operation cannot fail under normal conditions.
3467 */
3468 bool try_clear() noexcept {
3469 clear();
3470 return true;
3471 }
3472
3473 /**
3474 * @brief Erases @b (in-place) a range of characters defined with signed offsets.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected