Add named_parameter_t
This commit is contained in:
parent
4da548db0e
commit
c0c20a3907
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user