Discard()

System::Discard(T&&) function

Returns the default-constructed temporary instance of the specified type, which can be placed instead of discarding ‘_’ argument.

template<typename T> T & System::Discard(T &&initial=Details::DefaultValue<T>())

Template parameters

ParameterDescription
TThe type whose instance is returned.

See Also