Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
clara::detail::BoundLambda< L > Struct Template Reference

#include <clara.hpp>

Inheritance diagram for clara::detail::BoundLambda< L >:
Collaboration diagram for clara::detail::BoundLambda< L >:

Public Member Functions

 BoundLambda (L const &lambda)
 
auto setValue (std::string const &arg) -> ParserResult override
 
- Public Member Functions inherited from clara::detail::BoundValueRefBase
- Public Member Functions inherited from clara::detail::BoundRef
virtual ~BoundRef ()=default
 
virtual auto isContainer () const -> bool
 
virtual auto isFlag () const -> bool
 
- Public Member Functions inherited from clara::detail::NonCopyable
 NonCopyable ()=default
 
 NonCopyable (NonCopyable const &)=delete
 
 NonCopyable (NonCopyable &&)=delete
 
NonCopyableoperator= (NonCopyable const &)=delete
 
NonCopyableoperator= (NonCopyable &&)=delete
 

Public Attributes

m_lambda
 

Detailed Description

template<typename L>
struct clara::detail::BoundLambda< L >

Definition at line 780 of file clara.hpp.

Constructor & Destructor Documentation

◆ BoundLambda()

template<typename L >
clara::detail::BoundLambda< L >::BoundLambda ( L const & lambda)
inlineexplicit

Definition at line 784 of file clara.hpp.

784: m_lambda( lambda ) {}

Member Function Documentation

◆ setValue()

template<typename L >
auto clara::detail::BoundLambda< L >::setValue ( std::string const & arg) -> ParserResult
inlineoverridevirtual

Implements clara::detail::BoundValueRefBase.

Definition at line 786 of file clara.hpp.

786 {
787 return invokeLambda<typename UnaryLambdaTraits<L>::ArgType>( m_lambda, arg );
788 }

Member Data Documentation

◆ m_lambda

template<typename L >
L clara::detail::BoundLambda< L >::m_lambda

Definition at line 781 of file clara.hpp.


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