Struct argument_sink
Synopsis
#include <include/EASTL/type_traits.h>
struct argument_sink
Description
Used as a type which constructs from anything.
For compilers that support variadic templates we provide an alternative argument_sink which provides a constructor overload of the variadic pack of arguments by reference. This avoids issues of object alignment not being respected in Microsoft compilers. Seen in VS2015 preview. In general, since arguments are consumed and ignored its cheaper to consume references than passing by value which incurs a construction cost.
Methods
argument_sink |
Source
Lines 328-332 in include/EASTL/type_traits.h.
struct argument_sink
{
template<typename... Args>
argument_sink(Args&&...) {}
};