LukasJoswiak / LukasJoswiak/draft

Add support for std::set serialization

Open
#9 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
Dominant language
C++
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

To serialize, iterate over the elements and write each one to the output stream. To deserialize, read the elements in and add each one to the set. `std::set` should take care of ordering correctly, since each object must have had a [comparison function](https://en.cppreference.com/w/cpp/named_req/Compare) to be inserted into the set.

Add unit tests to ensure serialization and deserialization works correctly.

Update `README` to include `std::set` support.

See [`array.hpp`](https://github.com/LukasJoswiak/draft/blob/master/include/types/array.hpp) for a template on how to serialize and deserialize.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with include/types/array.hpp to follow the existing serialization and deserialization pattern for a container. Add unit coverage for std::set round trips and update README to list std::set support. Done means sets serialize and deserialize correctly while preserving their ordering behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.