X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/9c29aeaca5bdd90922c3192fd5e28530af28aba7..df2bb45e41303b5132feb6b264caaa01c31b8bb5:/include/stg/user_traff.h diff --git a/include/stg/user_traff.h b/include/stg/user_traff.h index 41c6c23f..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,9 +87,10 @@ 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(traff.size()); + DIR_TRAFF res; for (IndexType i = 0; i < traff.size(); ++i) if (!traff[i].empty()) res[i] = traff[i].data();