X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/fc06430b05b154e0e859c6a436c1ffd74576a189..476796d9b898e096079fee2dc76b37daaca13fc8:/include/stg/user_traff.h?ds=sidebyside diff --git a/include/stg/user_traff.h b/include/stg/user_traff.h index 4d5efe62..48843a49 100644 --- a/include/stg/user_traff.h +++ b/include/stg/user_traff.h @@ -73,6 +73,7 @@ return o; class DIR_TRAFF_RES { public: + typedef RESETABLE value_type; typedef RESETABLE ValueType; typedef std::vector ContainerType; typedef ContainerType::size_type IndexType; @@ -86,6 +87,7 @@ public: } const ValueType & operator[](IndexType idx) const { return traff[idx]; } ValueType & operator[](IndexType idx) { return traff[idx]; } + IndexType size() const { return traff.size(); } DIR_TRAFF GetData() const { DIR_TRAFF res;