LLVM 22.0.0git
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 497 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 500 of file CommandLine.h.

References CB.

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

References CB.

Member Data Documentation

◆ CB

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

Definition at line 498 of file CommandLine.h.

Referenced by apply(), and cb().


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