X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9fdd58e794e43fc2435265c4fb2f6933758f3c0b..5056c7c504cad88d663296454d9f67a96ea2fbdd:/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; };