]> git.stg.codes - stg.git/blobdiff - include/stg/user_traff.h
Merge branch 'stg-2.409'
[stg.git] / include / stg / user_traff.h
index d820588e3702d412436635474996da7d1a78b2c1..3ca9768ef185bc4f8d49be1d4a28658198846a57 100644 (file)
@@ -78,6 +78,7 @@ return o;
 class DIR_TRAFF_RES
 {
 public:
+    typedef RESETABLE<uint64_t> value_type;
     typedef RESETABLE<uint64_t> ValueType;
     typedef std::vector<ValueType> ContainerType;
     typedef ContainerType::size_type IndexType;
@@ -97,6 +98,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;