|
join 1.0
lightweight network framework library
|
helper class for variant operations using jump tables for O(1) dispatch. More...
#include <variant.hpp>
Static Public Member Functions | |
| static void | copy (std::size_t which, const void *src, void *dst) |
| copy one object to another. | |
| static void | move (std::size_t which, void *src, void *dst) |
| move one object to another. | |
| static void | destroy (std::size_t which, void *data) |
| destroy the currently active object. | |
| static bool | equal (std::size_t which, const void *a, const void *b) |
| compare if two objects of the same alternative are equal. | |
| static bool | lower (std::size_t which, const void *a, const void *b) |
| compare if one object is lower than another of the same alternative. | |
helper class for variant operations using jump tables for O(1) dispatch.
|
inlinestatic |
copy one object to another.
| which | internal storage index of the active alternative. |
| src | source storage pointer. |
| dst | destination storage pointer. |
|
inlinestatic |
destroy the currently active object.
| which | internal storage index of the active alternative. |
| data | storage pointer. |
|
inlinestatic |
compare if two objects of the same alternative are equal.
| which | internal storage index of the active alternative. |
| a | first storage pointer. |
| b | second storage pointer. |
|
inlinestatic |
compare if one object is lower than another of the same alternative.
| which | internal storage index of the active alternative. |
| a | first storage pointer. |
| b | second storage pointer. |
|
inlinestatic |
move one object to another.
| which | internal storage index of the active alternative. |
| src | source storage pointer. |
| dst | destination storage pointer. |