MCPcopy Create free account
hub / github.com/catboost/catboost / at

Method at

util/generic/strbase.h:381–386  ·  view source on GitHub ↗

~~ Read access ~~

Source from the content-addressed store, hash-verified

379
380 // ~~ Read access ~~
381 inline TCharType at(size_t pos) const noexcept {
382 if (Y_LIKELY(pos < Len())) {
383 return (Ptr())[pos];
384 }
385 return 0;
386 }
387
388 inline TCharType operator[](size_t pos) const noexcept {
389 Y_ASSERT(pos < this->size());

Callers 15

Y_UNIT_TESTFunction · 0.45
TestAtMethod · 0.45
TestReplaceMethod · 0.45
TBasicCharRefClass · 0.45
Y_UNIT_TESTFunction · 0.45
TestInsertOrAssignMethod · 0.45
Y_UNIT_TESTFunction · 0.45
TestAtMethod · 0.45
Y_UNIT_TESTFunction · 0.45

Calls

no outgoing calls

Tested by 7

TestAtMethod · 0.36
TestReplaceMethod · 0.36
TestInsertOrAssignMethod · 0.36
TestAtMethod · 0.36