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

Method null_char

util/generic/string_ut.cpp:287–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285 }
286
287 void null_char() {
288 // ISO/IEC 14882:1998(E), ISO/IEC 14882:2003(E), 21.3.4 ('... the const version')
289 const TStringType s(Data_._123456());
290
291 UNIT_ASSERT(s[s.size()] == 0);
292 }
293
294 // Allowed since C++17, see http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#2475
295 void null_char_assignment_to_subscript_of_empty() {

Callers

nothing calls this directly

Calls 2

_123456Method · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected