OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
ossia::value_with_unit Struct Referencefinal

Unit attached with a corresponding value. More...

Detailed Description

Unit attached with a corresponding value.

e.g. a specific color, or position.

Public Member Functions

 value_with_unit (const value_with_unit &other)=default
 value_with_unit (value_with_unit &&other)=default
value_with_unit & operator= (const value_with_unit &other)=default
value_with_unit & operator= (value_with_unit &&other)=default
template<typename T>
 value_with_unit (const T &arg) noexcept
auto which () const
 operator bool () const
template<typename T>
const T * target () const noexcept
template<typename T>
T * target () noexcept

Public Attributes

strong_value_variant v