void TtkLabel::handle_key_event(TtkKeyEvent& key_event) { if (key_event == kTtkKeyOk) { if (action_) action_(); } }
typename Action::result_type operator()(const Tuple& tup) const { return action_( std::get<N>(tup) ); }
int Action<F>::invoke(int a, int b) { return action_(a, b); }
typename Action::result_type operator()(const Tuple& first, const Tuple& second) const { return action_( std::get<N>(first), std::get<N>(second) ); }