Chemical Data Processing Library Python API - Version 1.1.1
CDPL.Base.Any Class Reference

A safe, type checked container for arbitrary data of variable type. More...

+ Inheritance diagram for CDPL.Base.Any:

Detailed Description

A safe, type checked container for arbitrary data of variable type.

The code is based on the std::experimental::any (N4562, merged into C++17) implementation for C++11 compilers by Denilson das Mercês Amorim. Any provides an optimization for small objects objects with a size of up to 2 words such as int, float and std::shared_ptr. Storing those objects in the container will not trigger a dynamic allocation.

For more details see [ANY].