diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-01-09 14:52:16 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-01-09 14:52:16 +0100 |
commit | f52e092d1a8c1af53aac422fce1e8d5edd3577a3 (patch) | |
tree | 967af9d30299afbb0a6275e56d555af6f3ef5460 | |
parent | 853bfabbc777a3943f4de0436d87ea09a9863568 (diff) |
m_spanningtree Add CmdBuilder::push_raw() overload for ranges
-rw-r--r-- | src/modules/m_spanningtree/commandbuilder.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/commandbuilder.h b/src/modules/m_spanningtree/commandbuilder.h index c2b438deb..26eb4587f 100644 --- a/src/modules/m_spanningtree/commandbuilder.h +++ b/src/modules/m_spanningtree/commandbuilder.h @@ -75,6 +75,13 @@ class CmdBuilder return *this; } + template <typename InputIterator> + CmdBuilder& push_raw(InputIterator first, InputIterator last) + { + content.append(first, last); + return *this; + } + CmdBuilder& push(const std::string& s) { content.push_back(' '); |