LLVM  14.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::cl::cb< R, Ty > Struct Template Reference

#include "llvm/Support/CommandLine.h"

Collaboration diagram for llvm::cl::cb< R, Ty >:
Collaboration graph
[legend]

Public Member Functions

 cb (std::function< R(Ty)> CB)
 
template<typename Opt >
void apply (Opt &O) const
 

Public Attributes

std::function< R(Ty)> CB
 

Detailed Description

template<typename R, typename Ty>
struct llvm::cl::cb< R, Ty >

Definition at line 482 of file CommandLine.h.

Constructor & Destructor Documentation

◆ cb()

template<typename R , typename Ty >
llvm::cl::cb< R, Ty >::cb ( std::function< R(Ty)>  CB)
inline

Definition at line 485 of file CommandLine.h.

Member Function Documentation

◆ apply()

template<typename R , typename Ty >
template<typename Opt >
void llvm::cl::cb< R, Ty >::apply ( Opt &  O) const
inline

Definition at line 487 of file CommandLine.h.

References llvm::cl::cb< R, Ty >::CB, and llvm::RISCVFenceField::O.

Member Data Documentation

◆ CB

template<typename R , typename Ty >
std::function<R(Ty)> llvm::cl::cb< R, Ty >::CB

Definition at line 483 of file CommandLine.h.

Referenced by llvm::cl::cb< R, Ty >::apply().


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