Marks t as unpredictable so the compiler cannot optimize on its value.

Synopsis

Declared in <folly/lang/Hint.h>

template<typename T>
void
compiler_must_not_predict(T& t) noexcept;
Note

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

Parameters

Name

Description

t

The value to treat as unpredictable.

Created with MrDocs