Home | Libraries | People | FAQ | More |
Important | |
---|---|
Trial.Dynamic is not an official Boost library. Trial.Dynamic is still work-in-progress. |
Trial.Dynamic is a C++11 header-only library with a C++ dynamic variable.
The resemblance between dynamic::variable
and std::variant
is obvious, but there are notable differences. While std::variant
supports custom types, dynamic::variable
is restricted to the above-mentioned data types and containers. This restriction
enables dynamic::variable
to adhere to the Container concept,
and thus to have a richer interface that works with algorithms.
Dynamic variables are useful for carrying configuration data, constructing parse trees for data formats, and protocol serialization.
[8]
Characters (char
, wchar_t
, char16_t
,
and char32_t
) are not
supported directly, but only indirectly via strings.
[9]
void
is not a regular
type, so it has been replaced with the dynamic::nullable
type and the dynamic::null
value.