MCPcopy Create free account
hub / github.com/covscript/covscript / check_args

Function check_args

include/covscript/core/cni.hpp:348–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346
347 template <typename... ArgTypes>
348 void check_args(const cs::vector &args)
349 {
350 if (sizeof...(ArgTypes) == args.size())
351 check_args_base<ArgTypes...>(args, std::make_index_sequence<sizeof...(ArgTypes)> {});
352 else
353 throw cs::runtime_error(
354 "Wrong size of the arguments. Expected " + std::to_string(sizeof...(ArgTypes)) + ", provided " +
355 std::to_string(args.size()));
356 }
357
358 template <typename _TargetT, typename _SourceT, typename _CheckT, std::size_t index>
359 struct try_convert_and_check {

Callers

nothing calls this directly

Calls 3

runtime_errorClass · 0.85
sizeMethod · 0.80
to_stringFunction · 0.70

Tested by

no test coverage detected