xtd 0.2.0
Loading...
Searching...
No Matches

◆ boxing() [2/2]

template<typename type_t , typename ... args_t>
box< type_t > xtd::boxing ( args_t &&...  args)
inlinenoexcept

Allows to box an object.

Parameters
...argsParams used to initialize object.
Returns
Boxed object.
Remarks
The boxed object must implement operator == and operator < because a xtd::box implement xtd::icomparable and xtd::iequatable interfaces.
Header
#include <xtd/boxing>
Namespace
xtd
Library
xtd.core
Remarks
For more information about types, see Native types, boxing and unboxing.