absl::implicit_cast

Overload of implicit_cast() for reference types, which participates in overload resolution when To is a reference type.

Synopsis

Declared in <absl/base/casts.h>

template<typename To>
constexpr
To
implicit_cast(To to)
requires std::is_reference_v<To>;

Return Value

The value of to, converted to To.

Parameters

NameDescription
toThe value to convert to To.