Seafire-Routing/seafire/routing/route-parameters.cxx
2025-03-08 20:55:07 +01:00

31 lines
513 B
C++

#include <seafire/routing/route-parameters.hxx>
namespace seafire::routing
{
std::map<std::string, std::string>&
route_parameters_t::
map()
{
return kv_;
}
std::map<std::string, std::string> const&
route_parameters_t::
map() const
{
return kv_;
}
std::optional<std::string>
route_parameters_t::
get(std::string const& key) const
{
if (auto it = map().find(key); it != map().end())
return it->second;
return std::nullopt;
}
} // namespace seafire::routing