msgpack::map_view can be used to iterate, pair-wise, over a range of msgpack::token. It will immediately return if the first token is not a map, and will skip over nested map/arrays. Note for the future: It will be handy to be able to get the subspan corresponding to the nested map/array. Will think about how to solve that later. Begin incorporating map_view into the server. Add formatters for std::byte, dynamic theme for bool, and spans thereof. Maybe switch to range?
9 lines
199 B
C
9 lines
199 B
C
#ifndef msgpack_object_f1f3a9e5c8be6a11
|
|
#define msgpack_object_f1f3a9e5c8be6a11
|
|
|
|
#include "token/type.h"
|
|
#include "token/reader.h"
|
|
#include "token/views.h"
|
|
|
|
#endif // msgpack_object_f1f3a9e5c8be6a11
|