Template Struct ForEachElement

Struct Documentation

template<template<typename Element> typename T>
struct ForEachElement

borrowed from https://github.com/ebu/libadm/pull/155

store a value for each top-level element type, with access by type

the value is given by the template T, so that get<AudioProgramme>() returns a T<AudioProgramme>, for example

Public Functions

template<typename El>
inline T<El> &get()

get one of the stored values

template<typename F>
inline void visit(F f)

call f on each of the stored values