Forwards a value with the value category of another type.

Synopsis

Declared in <folly/Utility.h>

template<
    typename Src,
    typename Dst>
constexpr
like_t<Src, Dst>&&
forward_like(Dst&& dst) noexcept;

Description

mimic: std::forward_like, C++23 / p2445r0.

Return Value

The forwarded reference with the value category of Src.

Parameters

Name

Description

dst

The value to forward.

Created with MrDocs