any_small
is a type-erasing container for small objects.
The main differences between any_small
and std::any
:
- The size of the object contained by
any_small
must be less than or equal toany_small::max_size
. any_small
always holds a value.any_small
has a couple of unimplemented member functions such as.emplace()
and.swap()
.