diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-11-26 21:51:27 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-11-26 21:51:27 +0200 |
commit | 58ce16d4d91518b674a5d46419809f56f71d9114 (patch) | |
tree | a1b1ba85e2cebc1798f75654c118e327b2219e81 /contrib/epee | |
parent | Merge pull request #4834 (diff) | |
parent | rpc: speedup get_outs.bin (diff) | |
download | monero-58ce16d4d91518b674a5d46419809f56f71d9114.tar.xz |
Merge pull request #4821
fc98f7a0 rpc: speedup get_outs.bin (moneromooo-monero)
Diffstat (limited to 'contrib/epee')
-rw-r--r-- | contrib/epee/include/span.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/epee/include/span.h b/contrib/epee/include/span.h index 174915ecf..b1296a0b7 100644 --- a/contrib/epee/include/span.h +++ b/contrib/epee/include/span.h @@ -109,6 +109,8 @@ namespace epee constexpr std::size_t size() const noexcept { return len; } constexpr std::size_t size_bytes() const noexcept { return size() * sizeof(value_type); } + const T &operator[](size_t idx) const { return ptr[idx]; } + private: T* ptr; std::size_t len; |