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

Class TIncrementOnDestroy

util/generic/maybe_ut.cpp:8–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "maybe.h"
7
8class TIncrementOnDestroy {
9private:
10 int* Ptr_;
11
12public:
13 TIncrementOnDestroy(int* ptr) noexcept
14 : Ptr_(ptr)
15 {
16 }
17
18 ~TIncrementOnDestroy() {
19 ++*Ptr_;
20 }
21};
22
23Y_UNIT_TEST_SUITE(TMaybeTest) {
24 Y_UNIT_TEST(TestStatic) {

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected