Overview
The cobalt::marshalling::operators namespace contains a small set of alias templates which provide the short Marshal::In, Marshal::Out, Marshal::InOut, and Marshal::Ret names used throughout the marshalling documentation. These aliases are only available when compiling with C++11 or later, as they rely on alias templates.
The intended usage is to import the operator namespace into a header and then refer to the helper types through the Marshal namespace, as follows:
using namespace cobalt::marshalling::operators;
virtual void SomeMethod(const Marshal::In<std::string>& input) = 0;
virtual void SomeOtherMethod(const Marshal::Out<std::vector<int>>& output) = 0;
Members
Alias templates
- Marshal::In - Alias for cobalt::marshalling::Marshal::In.
- Marshal::Out - Alias for cobalt::marshalling::Marshal::Out.
- Marshal::InOut - Alias for cobalt::marshalling::Marshal::InOut.
- Marshal::Ret - Alias for cobalt::marshalling::Marshal::Ret.