Commit f97dc341 authored by Dominik Charousset's avatar Dominik Charousset

Allow to create message builders from vectors

parent 6de24d09
...@@ -45,6 +45,14 @@ public: ...@@ -45,6 +45,14 @@ public:
append(first, last); append(first, last);
} }
/// Creates a new instance and immediately
/// calls `append(xs.begin(), xs.end())`.
template <class T>
message_builder(const std::vector<T>& xs) {
init();
append(xs.begin(), xs.end());
}
/// Adds `what` to the elements of the buffer. /// Adds `what` to the elements of the buffer.
message_builder& append(uniform_value what); message_builder& append(uniform_value what);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment