folly::drop_unit

Maps a type to itself, and maps Unit back to void.

Synopsis

Declared in <folly/Unit.h>

template<typename T>
struct drop_unit;

Description

This is the inverse of lift_unit.

Type Aliases

NameDescription
type The mapped type: T itself.

Specializations

Name
drop_unit<Unit>