folly::compiler_must_not_elide

Marks t as used so its computation is not elided.

Synopsis

Declared in <folly/lang/Hint.h>

template<typename T>
void
compiler_must_not_elide(T const& t) noexcept;

NOTE

This function is defined as an Algorithm Function Object (AFO).

Parameters

NameDescription
tThe value to treat as used.