diff options
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/Elements/Stanza.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/Elements/Stanza.h b/Swiften/Elements/Stanza.h index fbb0139..bd0d7e9 100644 --- a/Swiften/Elements/Stanza.h +++ b/Swiften/Elements/Stanza.h @@ -58,6 +58,11 @@ namespace Swift { payloads_.push_back(payload); } + template<typename InputIterator> + void addPayloads(InputIterator begin, InputIterator end) { + payloads_.insert(payloads_.end(), begin, end); + } + void updatePayload(boost::shared_ptr<Payload> payload); boost::shared_ptr<Payload> getPayloadOfSameType(boost::shared_ptr<Payload>) const; |