#include <x/deserialize.H> std::vector<std::string> strarray; // ... std::vector<char> charbuf; // ... x::deserialize::object(strarray, charbuf.begin(), charbuf.end());
The three argument version of
x::deserialize
's
object
() public member function takes a reference to
an object, a beginning iterator, and an ending iterator.
An iterator
object gets constructed using the two
iterators, then the first argument
to object
() gets deserialized.
#include <x/deserialize.H> x::deserialize::object(strarray, charbuf);
The two argument version of
object
() takes a container
for its second argument. The container's
begin
() and end
()
method provide the beginning and the ending iterator, which are
deserialized accordingly into the object referenced by its
first argument.