Skip to content

Add a bit about monostate in std::variant section?Β #28

@jmarrec

Description

@jmarrec

Thank you for the link to the ALL_IN_ONE.md and the work behind it. What a great read, I wish I knew it existed before!

By usage, I found one thing that's hard/awkward with std::variant is when your types aren't defaulted constructible (or when you want an option for the case where it's not initialized (optional)), with the use of std::monostate. Perhaps adding a small bit about this would be good?

I realize this isn't meant to replace actual documentation but rather get to the point (and it's doing an awesome job at it!), so perhaps that would be considered clutter, I'm not sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions