Lodestar
An integrated real-time control package in C++
ls::aux::Any< TTypes > Class Template Reference

#include <Any.hpp>

Public Member Functions

DynamicDataTypes::Types tag () const
 
template<typename TType , typename std::enable_if< get_index< TType, TTypes... >::conclusive, bool >::type = true>
 Any (const TType &x)
 
template<typename TType , typename std::enable_if<!get_index< TType, TTypes... >::conclusive, bool >::type = true>
 Any (const TType &x)
 
template<typename TType , typename std::enable_if< get_index< TType, TTypes... >::conclusive, bool >::type = true>
const TType & operator= (const TType &x)
 
template<typename TType , typename std::enable_if<!get_index< TType, TTypes... >::conclusive, bool >::type = true>
const TType & operator= (const TType &x)
 
template<typename TType >
bool is () const
 
template<typename TType >
TType & as ()
 
template<typename TType >
const TType & as () const
 
template<typename TType >
bool into (TType &x)
 
template<typename TType >
bool anyConvertible ()
 

Public Attributes

DynamicDataTypes::Types tags [sizeof...(TTypes)]
 

Detailed Description

template<typename... TTypes>
class ls::aux::Any< TTypes >

Container capable of containing any of the TTypes.

Note
Inspired by https://gist.github.com/Mr-Andersen/cd5f9d8740e03b3a779bd49da281652d
Template Parameters
TTypesTypes to be included in the Any.

The documentation for this class was generated from the following file: