Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkenso authored Jul 22, 2019
1 parent 574a2d2 commit 653a9cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# asenum
AssociatedEnum: header-only library for C++ for enumerations with associated values
**AssociatedEnum** is a header-only library for C++ for enumerations with associated values

asenum is C++ implementation of very neat enums from Swift language (https://docs.swift.org/swift-book/LanguageGuide/Enumerations.html, chapter 'Associated Values').

asenum combines Enum and Variant: it allows to create lighweight wrapper around plain C++ enum and add ability to assign different value types to different cases.

Features:
## Features
- each enum case can be associated with different type
- values are immutable: totally thread-safe
- simple and powerful interface
- lightweight header-only single file library
- requires only C++11

Example:
## Example
```
#include <string>
#include <chrono>
Expand Down

0 comments on commit 653a9cf

Please sign in to comment.