The Box<T>
type for heap allocation and other
tools for typeerasure 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 satisfiesC
but without templates.
Operators

Compares the inner value of two
Box
objects for ordering. This compares the values pointed to from theBox
, not the pointers themselves. 
Compares the inner value of two
Box
objects 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 conceptsatisfying type
T
without knowing the concrete typeT
.