variant-lite

Type-safe union

A type-safe union library for C++98 and later, allowing easy representation of alternative values in a single-file header-only library.

variant lite - A C++17-like variant, a type-safe union for C++98, C++11 and later in a single-file header-only library

GitHub

239 stars
11 watching
26 forks
Language: C++
last commit: over 2 years ago
cpp17cpp98header-onlyno-dependenciessingle-filevariantvariant-implementations

Related projects:

RepositoryDescriptionStars
martinmoene/optional-liteA header-only library providing an optional value type with C++98/C++11 compatibility and minimal dependencies.406
martinmoene/any-liteA type-safe container for single values of any type in C++136
martinmoene/nonstd-liteA set of simplified C++ standard library extensions for pre-C++11 environments.83
mknejp/dotvariantA type-safe sum type library for C# that enables the creation of compact variants with compile-time checked constraints and generated interfaces.70
martinmoene/expected-liteA header-only library providing objects to represent valid values or errors in C++11 and later415
martinmoene/span-liteA C++20-like span implementation for older compilers499
martinmoene/string-view-liteProvides a single-file header-only C++17-like string_view for compatibility with older C++ standards427
martinmoene/ring-span-liteA single-file header-only C++ library providing a circular buffer view for containers with a flexible interface.154
mpark/variantAn implementation of C++17 std::variant for C++11/14/17674
gsl-lite/gsl-liteA header-only implementation of C++ guidelines support library functions and types for improving code quality and safety.911
antfu-collective/vitesse-liteA lightweight version of Vitesse with Vue 3, Vite, and ESBuild for fast performance1,147
dmlc/ps-liteA lightweight interface for parameter sharing and synchronization between nodes in distributed systems1,540
p-p-h-d/mlibA C library providing generic and type-safe container implementations919
mplanchard/safetywrapTypesafe wrappers for handling errors and absent data in Python44
foonathan/type_safeA set of C++ utilities to prevent bugs at compile time using the type system.1,545