コード例 #1
0
ファイル: label.cpp プロジェクト: lisicheng/ttk
void TtkLabel::handle_key_event(TtkKeyEvent& key_event)
{
	if (key_event == kTtkKeyOk) {
		if (action_)
			action_();
	}
}
コード例 #2
0
 typename Action::result_type operator()(const Tuple& tup) const {
     return action_( std::get<N>(tup) );
 }
コード例 #3
0
ファイル: function_test2.cpp プロジェクト: iwadon/junk
int Action<F>::invoke(int a, int b)
{
  return action_(a, b);
}
コード例 #4
0
 typename Action::result_type operator()(const Tuple& first, const Tuple& second) const {
     return action_( std::get<N>(first), std::get<N>(second) );
 }