Open
Description
Feature Request: Support more STL containers
Brief Summary of Request
Currently, this library only supports sequential containers like std::vector
and std::array
, but other container types should also have built-in support.
These include:
-
std::array
-
std::vector
-
std::deque
-
std::forward_list
-
std::list
-
std::set
-
std::map
-
std::multiset
-
std::multimap
-
std::unordered_set
-
std::unordered_map
-
std::unordered_multiset
-
std::unordered_multimap
As well as container adapters:
-
std::stack
-
std::queue
-
std::priority_queue
And a few other popular data structures:
-
std::complex
-
std::pair
-
std::tuple
What Is The Value Added With This Feature
Easier serialization without user-defined functions.
Desired Outcome
// server
void UseMap(std::map<int, std::string> map);
// client
MyClient client;
std::map<int, std::string> my_map;
client.call_func("UseMap", my_map);
Other Details
This may be updated/replaced when C++20 is adopted.