From 34ec024bf4087c43ae98294a3075f797dae23dc3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 29 Aug 2023 20:55:09 +0200 Subject: [PATCH] net/AllocatedSocketAddress: add method GetSteadyPart() --- src/net/AllocatedSocketAddress.hxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/net/AllocatedSocketAddress.hxx b/src/net/AllocatedSocketAddress.hxx index 6900d0338..f1475b969 100644 --- a/src/net/AllocatedSocketAddress.hxx +++ b/src/net/AllocatedSocketAddress.hxx @@ -183,6 +183,11 @@ public: } #endif + [[gnu::pure]] + std::span GetSteadyPart() const noexcept { + return SocketAddress{*this}.GetSteadyPart(); + } + private: void SetSize(size_type new_size) noexcept; };