diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-05-14 19:05:41 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-05-14 19:05:41 +0100 |
| commit | e9af3a4217843974c1e9c89bb8ddcfee44216c9e (patch) | |
| tree | 6a3655c08035c92259e060c75ace560b9c750aca /src/diff.hh | |
| parent | 8ba68044809d6fc0bc34eae44f7ff0a855463d1a (diff) | |
always_inline a few methods
Diffstat (limited to 'src/diff.hh')
| -rw-r--r-- | src/diff.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/diff.hh b/src/diff.hh index e68ec10c..da1328e2 100644 --- a/src/diff.hh +++ b/src/diff.hh @@ -18,7 +18,9 @@ struct MirroredArray : public ArrayView<T> (*this)[i] = 0; } + [[gnu::always_inline]] T& operator[](int n) { return ArrayView<T>::operator[](n + size); } + [[gnu::always_inline]] const T& operator[](int n) const { return ArrayView<T>::operator[](n + size); } private: int size; |
