示例#1
0
	bool process(char ch)
	{
		auto itr(_handlers.find({ch}));
		if (itr == _handlers.end())
		{
			_ostr << "Command not found";
			return true;
		}
		return (this->*itr->second)();
	}
示例#2
0
文件: myfix.hpp 项目: BoSiC/fix8
	bool process(char ch)
	{
		auto itr(_handlers.find({ch}));
		return itr == _handlers.end() ? true : (this->*itr->second)();
	}