diff options
Diffstat (limited to 'src/misc')
-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 29870e1e9..35e90be97 100644 --- a/src/misc/smallvec.h +++ b/src/misc/smallvec.h @@ -49,6 +49,16 @@ template <typename T, uint S> struct SmallVector { { return &data[items]; } + + const T *Get(size_t index) const + { + return &data[index]; + } + + T *Get(size_t index) + { + return &data[index]; + } }; #endif /* SMALLVEC_H */ |