diff --git a/zmq_addon.hpp b/zmq_addon.hpp index 43c7d3b..33b0683 100644 --- a/zmq_addon.hpp +++ b/zmq_addon.hpp @@ -93,6 +93,26 @@ public: clear(); } + message_t& operator[] (size_t n) + { + return m_parts[n]; + } + + const message_t& operator[] (size_t n) const + { + return m_parts[n]; + } + + message_t& at (size_t n) + { + return m_parts.at(n); + } + + const message_t& at (size_t n) const + { + return m_parts.at(n); + } + // Delete all parts void clear() {