An efficient, type‐erasing, non‐owning reference to a callable.
Synopsis
Declared in <llvm/ADT/STLFunctionalExtras.h>
template<typename Fn>
class function_ref;
Description
This is intended for use as the type of a function parameter that is not used after the function in question returns.
This class does not own the callable, so it is not in general safe to store a function_ref.
Specializations
Name |
Description |
Partial specialization of function_ref for a given function signature. |
Non-Member Functions
Name |
Description |
Print an error diagnostic by writing into a colored error stream. |
|
Print an error via |
|
Print a note diagnostic by writing into a colored note stream. |
|
Match a float or vector where CheckFn(ele) for each element is true. For vectors, poison elements are assumed to match. |
|
Match an integer or vector where CheckFn(ele) for each element is true. For vectors, poison elements are assumed to match. |
|
Call |
Created with MrDocs