mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-01 19:18:04 +00:00
Added Buffer::Buffer(iter, iter) constructor overload
This commit is contained in:
@@ -81,6 +81,11 @@ public:
|
||||
throw Exception("Invalid buffer configuration");
|
||||
}
|
||||
}
|
||||
|
||||
template <typename Iter>
|
||||
Buffer(const Iter first, Iter last)
|
||||
: Buffer(&*first, std::distance(first, last)) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a buffer from a vector
|
||||
|
||||
Reference in New Issue
Block a user