template<auto Function>
struct ns3::StructConstructor< Function >
Describe a function that constructs a structure from its field values.
C++ does not allow taking the address of a constructor. Therefore, Function must point to a static or free factory function that returns the represented structure and accepts its field values in declaration order.
struct Data
{
static Data
Create(uint16_t count,
double value);
};
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
Describe a function that constructs a structure from its field values.
- Template Parameters
-
| Function | Pointer to the function that constructs the structure. |
Definition at line 261 of file struct.h.