diff options
| author | elantsev <[email protected]> | 2022-02-10 16:49:47 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:47 +0300 | 
| commit | afa1b6e6f8b6ee9f8df080d41bcb19b95c25c261 (patch) | |
| tree | 0be08f6ef31456c320cbd3f575673be79c911588 /util/generic/intrlist.h | |
| parent | 93452ad7de84fbd34e7ba9a906bf10ce1536d722 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/generic/intrlist.h')
| -rw-r--r-- | util/generic/intrlist.h | 24 | 
1 files changed, 12 insertions, 12 deletions
diff --git a/util/generic/intrlist.h b/util/generic/intrlist.h index b5d3f2051b5..315e10ed48e 100644 --- a/util/generic/intrlist.h +++ b/util/generic/intrlist.h @@ -348,11 +348,11 @@ public:          this->Swap(right);      } -    inline TIntrusiveList& operator=(TIntrusiveList&& rhs) noexcept { -        this->Swap(rhs); -        return *this; -    } - +    inline TIntrusiveList& operator=(TIntrusiveList&& rhs) noexcept {  +        this->Swap(rhs);  +        return *this;  +    }  +       inline explicit operator bool() const noexcept {          return !Empty();      } @@ -611,16 +611,16 @@ public:          this->Clear();      } -    TIntrusiveListWithAutoDelete& operator=(TIntrusiveListWithAutoDelete&& rhs) noexcept { +    TIntrusiveListWithAutoDelete& operator=(TIntrusiveListWithAutoDelete&& rhs) noexcept {           TIntrusiveList<T, Tag>::operator=(std::move(rhs)); -        return *this; -    } - +        return *this;  +    }  +   public:      inline void Clear() noexcept { -        this->ForEach([](auto* item) { -            D::Destroy(item); -        }); +        this->ForEach([](auto* item) {  +            D::Destroy(item);  +        });       }      inline static void Cut(TIterator begin, TIterator end) noexcept {  | 
