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

#include "llvm/Support/CommandLine.h"

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 502 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 505 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 507 of file CommandLine.h.

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

Member Data Documentation

◆ CB

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

Definition at line 503 of file CommandLine.h.

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


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