diff options
Diffstat (limited to 'src/misc/smallvec.h')
-rw-r--r-- | src/misc/smallvec.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/misc/smallvec.h b/src/misc/smallvec.h index 952261ae7..29870e1e9 100644 --- a/src/misc/smallvec.h +++ b/src/misc/smallvec.h @@ -35,10 +35,20 @@ template <typename T, uint S> struct SmallVector { return data; } + T *Begin() + { + return data; + } + const T *End() const { return &data[items]; } + + T *End() + { + return &data[items]; + } }; #endif /* SMALLVEC_H */ |