| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected