aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-07 21:13:00 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-26 18:56:23 +0000
commitfc98f7a0a13c1246b67ed4d7fb40705bb68a8b93 (patch)
treecca519bb22accb219b7aa41b631fd46e6f2cffce /contrib/epee
parentMerge pull request #4824 (diff)
downloadmonero-fc98f7a0a13c1246b67ed4d7fb40705bb68a8b93.tar.xz
rpc: speedup get_outs.bin
Diffstat (limited to 'contrib/epee')
-rw-r--r--contrib/epee/include/span.h2
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;