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

Class TPointerBase

util/generic/ptr.h:164–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162
163template <class Base, class T>
164class TPointerBase: public TPointerCommon<Base, T> {
165public:
166 inline T& operator*() const noexcept {
167 Y_ASSERT(this->AsT());
168
169 return *(this->AsT());
170 }
171
172 inline T& operator[](size_t n) const noexcept {
173 Y_ASSERT(this->AsT());
174
175 return (this->AsT())[n];
176 }
177};
178
179/*
180 * void*-like pointers do not have operator*

Callers

nothing calls this directly

Calls 1

AsTMethod · 0.80

Tested by

no test coverage detected