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

Method pop_back

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

* @brief Removes the last character from the string. * @warning The behavior is @b undefined if the string is empty. */

Source from the content-addressed store, hash-verified

3898 * @warning The behavior is @b undefined if the string is empty.
3899 */
3900 void pop_back() noexcept { sz_string_erase(&string_, size() - 1, 1); }
3901
3902 /**
3903 * @brief Overwrites the string with the given string.

Callers 1

Calls 1

sz_string_eraseFunction · 0.85

Tested by

no test coverage detected