Many an `any`

By Alisdair Meredith

std::any is one of the simpler types in the standard library, providing type erasure for any copyable type. This presentation would explore the various choices of implementation strategy, and what impact such choices may make on the future evolution of such a type. What kind of ABI restrictions get baked in that might affect future extensions, such as embracing constexpr? What is the performance impact, if any is observable, of the different choices? How is compile time, and the amount of code that must be included, affected by such decisions? Do C++20 modules make a difference?

std::any is simple enough that several complete implementations can be presented within the 90 minute session, along with several micro-benchmark results.





Your Privacy

By clicking "Accept Non-Essential Cookies" you agree ACCU can store non-essential cookies on your device and disclose information in accordance with our Privacy Policy and Cookie Policy.

Current Setting: Non-Essential Cookies REJECTED


By clicking "Include Third Party Content" you agree ACCU can forward your IP address to third-party sites (such as YouTube) to enhance the information presented on this site, and that third-party sites may store cookies on your device.

Current Setting: Third Party Content EXCLUDED



Settings can be changed at any time from the Cookie Policy page.