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: 6 months ago
cpp17cpp98header-onlyno-dependenciessingle-filevariantvariant-implementations

Related projects:

Repository Description Stars
martinmoene/optional-lite A header-only library providing an optional value type with C++98/C++11 compatibility and minimal dependencies. 404
martinmoene/any-lite A type-safe container for single values of any type in C++ 135
martinmoene/nonstd-lite A set of simplified C++ standard library extensions for pre-C++11 environments. 83
mknejp/dotvariant A 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-lite A header-only library providing objects to represent valid values or errors in C++11 and later 391
martinmoene/span-lite A C++20-like span implementation for older compilers 498
martinmoene/string-view-lite Provides a single-file header-only C++17-like string_view for compatibility with older C++ standards 422
martinmoene/ring-span-lite A single-file header-only C++ library providing a circular buffer view for containers with a flexible interface. 154
mpark/variant An implementation of C++17 std::variant for C++11/14/17 669
gsl-lite/gsl-lite A header-only implementation of C++ guidelines support library functions and types for improving code quality and safety. 900
antfu-collective/vitesse-lite A lightweight version of Vitesse with Vue 3, Vite, and ESBuild for fast performance 1,115
dmlc/ps-lite A lightweight interface for parameter sharing and synchronization between nodes in distributed systems 1,540
p-p-h-d/mlib A C library providing generic and type-safe container implementations 904
mplanchard/safetywrap Typesafe wrappers for handling errors and absent data in Python 44
foonathan/type_safe A set of C++ utilities to prevent bugs at compile time using the type system. 1,542