cxxomfort
rel.20210622
Simple backports for C++ - http://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
Wraps and tags a native C type as an opaque type. More...
Wraps and tags a native C type as an opaque type.
OpaqueNative
takes a native C type, like int
or float
and wraps it with a Tag type as an opaque (named) type. The result is a type that can be used by explicitly accessing the underlying type where desired.
The wrapper provides access to the underlying object via the value
member, but the opaque interface is used via the value()
and opaque()
functions.