Add named_parameter_t

This commit is contained in:
R.Y.A.N 2025-03-09 14:09:38 +01:00
parent 4da548db0e
commit c0c20a3907
Signed by: R.Y.A.N
GPG Key ID: 3BD93EABD1407B82

View File

@ -27,6 +27,19 @@ namespace seafire::server
}; };
template<parameter_name_t Name>
class named_parameter_t
{
public:
static
std::string const&
name()
{
static std::string name{Name};
return name;
}
};
struct string_parameter_t struct string_parameter_t
{ {
using value_type = std::string; using value_type = std::string;