absl::void_t

Ignores the type of any its arguments and returns void. In general, this metafunction allows you to create a general case that maps to void while allowing specializations that map to specific types.

Synopsis

Declared in <absl/meta/type_traits.h>

template<typename... Ts>
using void_t [[deprecated("Use std::void_t instead.")]] = /* implementation-defined */::type;

WARNING

Deprecated: Use std::void_t instead.. Use of this entity is allowed but discouraged.

Description

This metafunction is a workaround for some implementations of std::void_t that evaluate to void prematurely, causing partial specializations to appear duplicated (and thus invalid) to the compiler prior to substitution taking place. Whenever possible, use std::void_t instead.