Stores a value having one of the listed types in a common representation. More...
#include </home/chochlik/devel/oglplus/include/oglplus/one_of.hpp>
Public Member Functions | |
operator Common (void) const | |
OneOf is convertible to the Common representation of the Variants. | |
Stores a value having one of the listed types in a common representation.
Applications rarely need to use this class directly. Instantiations of this template are used as types for parameters in functions taking values with variant types. When constructing a one-of value the application simply passes a value whose type must be one of the types listed in the Variants
template parameter pack, otherwise the construction will fail.