9 std::size_t
const expected,
10 std::size_t
const nargs)
12 auto maybe_plural = [](std::size_t
const nargs) {
13 return nargs == 1ull ?
"" :
"s";
15 auto has_or_have = [](std::size_t
const nargs) {
16 return nargs == 1ull ?
"has" :
"have";
18 if (nargs != expected) {
19 std::ostringstream oss;
21 << nargs <<
" value" << maybe_plural(nargs) <<
' ' << has_or_have(nargs)
22 <<
" been provided for the parameter with key:\n" 24 <<
"which expects " << expected <<
" value" << maybe_plural(expected)
void check_nargs_for_bounded_sequences(std::string const &key, std::size_t expected, std::size_t provided)