X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9fdd58e794e43fc2435265c4fb2f6933758f3c0b..a65f0d5b294d9a5d90e4767ef50857c4cf3589b2:/include/stg/user_traff.h?ds=sidebyside diff --git a/include/stg/user_traff.h b/include/stg/user_traff.h index 1b9e2035..eec46276 100644 --- a/include/stg/user_traff.h +++ b/include/stg/user_traff.h @@ -51,6 +51,12 @@ public: uint64_t & operator[](IndexType idx) { return traff[idx]; } IndexType size() const { return traff.size(); } + void Reset() + { + for (IndexType i = 0; i < traff.size(); ++i) + traff[i] = 0; + } + private: ContainerType traff; };