LLVM  14.0.0git
llvm::unique_function< FunctionT > Class Template Reference

unique_function is a type-erasing functor similar to std::function. More...

#include "llvm/ADT/FunctionExtras.h"

Inheritance diagram for llvm::unique_function< FunctionT >:
Inheritance graph
[legend]

Detailed Description

template<typename FunctionT>
class llvm::unique_function< FunctionT >

unique_function is a type-erasing functor similar to std::function.

It can hold move-only function objects, like lambdas capturing unique_ptrs. Accordingly, it is movable but not copyable.

It supports const-qualification:

Definition at line 56 of file FunctionExtras.h.


The documentation for this class was generated from the following file: