#any #cpp #box #container #stored #up

any-box

The crate contains an implementation of a container type AnyBox which works similar to C++’s (std::any)

1 unstable release

0.0.1 Mar 7, 2022

#36 in #stored

Apache-2.0

16KB
300 lines

AnyBox works similar to C++'s (std::any):

  • small types (up to a pointer size) are stored without heap allocation.
  • larger types are stored with a Box

lib.rs:

The library contains an implementation of a container type AnyBox which works similar to C++'s (std::any)

No runtime deps