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

Method sat

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

* @brief Signed alternative to `at()`. Handy if you often write `str[str.size() - 2]`. * @warning The behavior is @b undefined if the position is beyond bounds. */

Source from the content-addressed store, hash-verified

2966 * @warning The behavior is @b undefined if the position is beyond bounds.
2967 */
2968 value_type sat(difference_type offset) const noexcept sz_lifetime_bound_ { return view().sat(offset); }
2969 reference sat(difference_type offset) noexcept sz_lifetime_bound_ { return span().sat(offset); }
2970
2971 /**

Callers 1

Calls 1

spanClass · 0.85

Tested by 1