-
Notifications
You must be signed in to change notification settings - Fork 3
Vocabulary types
sarah edited this page Jan 31, 2022
·
9 revisions
#include <veg/box.hpp>
A pointer type for heap allocation.
#include <veg/fn_dyn.hpp>
Type-erased function view and owning types.
#include <veg/option.hpp>
A type that may either hold a value or not.
#include <veg/ref.hpp>
Lightweight wrapper around pointers (to const or mutable data) that ensures it can't be null. Has value semantics rather than reference semantics.
#include <veg/slice.hpp>
Lightweight wrapper around pointer (to const or mutable data) + size of a contiguous range.
#include <veg/tuple.hpp>
Lightweight product type. Supports structured bindings.
#include <veg/uwunion.hpp>
Lightweight(ish) sum type.
#include <veg/vec.hpp>
Contiguous container type, supports the use of custom allocators through veg
's allocator interface.