MCPcopy Create free account
hub / github.com/daniele77/cli / Insert

Method Insert

include/cli/cli.h:984–988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

982
983 template <typename R, typename ... Args>
984 CmdHandler Menu::Insert(const std::string& cmdName, R (*f)(std::ostream&, Args...), const std::string& help, const std::vector<std::string>& parDesc)
985 {
986 using F = R (*)(std::ostream&, Args...);
987 return Insert(std::make_unique<VariadicFunctionCommand<F, Args ...>>(cmdName, f, help, parDesc));
988 }
989
990 template <typename F, typename R, typename ... Args>
991 CmdHandler Menu::Insert(const std::string& cmdName, const std::string& help, const std::vector<std::string>& parDesc, F& f, R (F::*)(std::ostream& out, Args...) const )

Callers 12

BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
UserInterfaceMethod · 0.45
UserInterfaceMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
ArithmeticMethod · 0.45
StringsMethod · 0.45
mainFunction · 0.45
CliSessionMethod · 0.45

Calls

no outgoing calls

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36