The Box<T> type for heap allocation and other
tools for type-erasure of concepts.
Classes
-
A heap allocated object.
-
A type erasure of a type satisfying a concept, which can be used as a reference without heap allocation or templates. Returned from
dyn.
Functions
-
Type erases a reference to a type
T&which satisfies a conceptC, into a referenceDynC&that also satisfiesCbut without templates.
Operators
-
Compares the inner value of two
Boxobjects for ordering. This compares the values pointed to from theBox, not the pointers themselves. -
Compares the inner value of two
Boxobjects for equality. This does not perform pointer equality on the boxes themselves.
Concepts
-
A concept for generalized type erasure of concepts, allowing use of a concept-satisfying type
Twithout knowing the concrete typeT.