MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / operator[]

Method operator[]

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

Source from the content-addressed store, hash-verified

2904 const_reverse_iterator crend() const noexcept sz_lifetime_bound_ { return view().crend(); }
2905
2906 reference operator[](size_type pos) noexcept sz_lifetime_bound_ { return string_.internal.start[pos]; }
2907 const_reference operator[](size_type pos) const noexcept sz_lifetime_bound_ { return string_.internal.start[pos]; }
2908
2909 reference front() noexcept sz_lifetime_bound_ { return string_.internal.start[0]; }

Callers

nothing calls this directly

Calls 1

spanClass · 0.85

Tested by

no test coverage detected