X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9fdd58e794e43fc2435265c4fb2f6933758f3c0b..455af0eb264bcac8f2b5170623a14d8f5666045e:/include/stg/user_traff.h?ds=inline 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; };