Skip to content

[FEATURE REQUEST] Support more STL containers #71

Description

@jharmer95

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthigh priorityThis issue should take precedence over othersserial adapterInvolves a new or existing serial adapter, not the core header

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions