MCPcopy Create free account
hub / github.com/Profactor/cv-plot / BoundLambda

Class BoundLambda

CvPlot/ext/catch2/inc/catch.hpp:9110–9119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9108
9109 template<typename L>
9110 struct BoundLambda : BoundValueRefBase {
9111 L m_lambda;
9112
9113 static_assert( UnaryLambdaTraits<L>::isValid, "Supplied lambda must take exactly one argument" );
9114 explicit BoundLambda( L const &lambda ) : m_lambda( lambda ) {}
9115
9116 auto setValue( std::string const &arg ) -> ParserResult override {
9117 return invokeLambda<typename UnaryLambdaTraits<L>::ArgType>( m_lambda, arg );
9118 }
9119 };
9120
9121 template<typename L>
9122 struct BoundFlagLambda : BoundFlagRefBase {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected