Syntalos::MetaValue

Syntalos::MetaValue

Syntalos::MetaValue

Data type that can be used as stream metadata.

#include <streammeta.h>

Inherits from std::variant< std::nullptr_t, bool, int64_t, double, std::string, MetaSize, MetaArray, MetaStringMap >

Public Types

Name
using std::variant< std::nullptr_t, bool, int64_t, double, std::string, MetaSize, MetaArray, MetaStringMap >Base

Public Functions

Name
MetaValue(const char * s)
MetaValue(int32_t v)
booloperator==(const MetaValue & other) const
template <typename T >
std::optional< T >
get() const
Get the contained value as the selected type.
template <typename T >
T
getOr(T fallback) const
Get the contained value as the selected type or return a fallback value.

Public Types Documentation

using Base

using Syntalos::MetaValue::Base =  std::variant<std::nullptr_t, bool, int64_t, double, std::string, MetaSize, MetaArray, MetaStringMap>;

Public Functions Documentation

function MetaValue

inline MetaValue(
    const char * s
)

function MetaValue

inline MetaValue(
    int32_t v
)

function operator==

inline bool operator==(
    const MetaValue & other
) const

function get

template <typename T >
inline std::optional< T > get() const

Get the contained value as the selected type.

function getOr

template <typename T >
inline T getOr(
    T fallback
) const

Get the contained value as the selected type or return a fallback value.


Updated on 2026-04-20 at 00:59:18 +0000