Skip to content

Commit ff29a79

Browse files
author
Daniel Kroening
committed
add an implementation of std::variant<...>
This allows strengthening type safety in a number of data structures we already have.
1 parent ab81ffc commit ff29a79

File tree

4 files changed

+2841
-0
lines changed

4 files changed

+2841
-0
lines changed

.clang-format-ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/nonstd/variant.h

src/nonstd/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@
55

66
`nonstd` contains implementations of C++ utilities that are not yet
77
part of the standard library, e.g. for `optional`.
8+
9+
variant.hpp implements `variant`; it is
10+
https://github.com/mpark/variant/blob/single-header/v1.4.0/variant.hpp
11+
License is at
12+
https://github.com/mpark/variant/blob/single-header/LICENSE.md

0 commit comments

Comments
 (0)