Provides a specialized variant type (xpod::type
) for simple data exchange, supporting integer, floating-point, boolean, pointers, and strings. This namespace is designed for compactness and serializability, letting you store fundamental data types in a variant structure. By including additional headers, the variant gains transparent serialization capabilities without sacrificing performance.
More...
|
namespace | type_index |
| Defines index constants for the xpod::type variant (e.g., integer, number, boolean, pointer, string). These constants allow you to refer to a specific type index in the underlying variant, simplifying code that checks or extracts a particular xpod type.
|
|
|
using | type = std::variant<long long, double, bool, memory::pointer, std::string> |
| A variant designed for basic data types. memory::pointer is used in place of void* to provide additional features.
|
|
Provides a specialized variant type (xpod::type
) for simple data exchange, supporting integer, floating-point, boolean, pointers, and strings. This namespace is designed for compactness and serializability, letting you store fundamental data types in a variant structure. By including additional headers, the variant gains transparent serialization capabilities without sacrificing performance.
◆ type
◆ operator<<()
std::ostream & cbeam::container::xpod::operator<< |
( |
std::ostream & | os, |
|
|
const xpod::type & | v ) |
|
inline |
Overload of the insertion operator to output the contents of an xpod::type.
This uses std::visit to print the currently active variant type in a human-readable way.
- Parameters
-
os | The output stream. |
v | The xpod::type variant to print. |
- Returns
- std::ostream& A reference to the output stream for chaining.