From 4fb6bcebac0309f27531bfe525f6d30a4c283642 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Wed, 21 Aug 2013 21:23:01 +0200 Subject: [PATCH] [DEV] add hash element get --- etk/Hach.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/etk/Hach.h b/etk/Hach.h index 47625e2..78cf9c0 100644 --- a/etk/Hach.h +++ b/etk/Hach.h @@ -160,6 +160,14 @@ namespace etk { return m_data.Size(); } + MY_TYPE& operator[] (esize_t _pos) + { + return GetValue(_pos); + } + const MY_TYPE& operator[] (esize_t _pos) const + { + return GetValue(_pos); + } const etk::UString& GetKey(esize_t _pos) const { // NOTE :Do not change log level, this generate error only in debug mode