libconfig v2.1.0
Reflection based C++ configuration library
Loading...
Searching...
No Matches
fourdst::config::IsCLIApp Concept Reference

Concept that defines the requirements for a CLI application class. More...

#include <cli.h>

Concept definition

template<typename T>
concept fourdst::config::IsCLIApp = requires(T app, std::string name, std::string description)
{
{app.add_option(name, std::declval<int&>(), description)};
}
Concept that defines the requirements for a CLI application class.
Definition cli.h:27

Detailed Description

Concept that defines the requirements for a CLI application class.

This concept ensures that the CLI application class T has an add_option member function compatible with the signature expected by register_as_cli. It is satisfied by CLI::App from CLI11.

Template Parameters
TThe type to check against the concept.