mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-12 10:33:52 +01:00
addd operator[] and at function
This commit is contained in:
parent
28c7c8cfe7
commit
3483416e5a
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user