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

Method operator[]

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

Source from the content-addressed store, hash-verified

1841 const_reverse_iterator crend() const noexcept { return const_reverse_iterator(start_ - 1); }
1842
1843 reference operator[](size_type pos) const noexcept { return start_[pos]; }
1844 reference at(size_type pos) const noexcept { return start_[pos]; }
1845 reference front() const noexcept { return start_[0]; }
1846 reference back() const noexcept { return start_[length_ - 1]; }

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected