From a039c8ad36779903571419cb06cd052f8fc41512 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 29 Mar 2022 17:40:04 +0200 Subject: refactor: use trailing return types --- src/DI/object_type.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/DI/object_type.hpp') diff --git a/src/DI/object_type.hpp b/src/DI/object_type.hpp index 6b27682..5107dbf 100644 --- a/src/DI/object_type.hpp +++ b/src/DI/object_type.hpp @@ -8,11 +8,11 @@ class BaseObjectType public: explicit BaseObjectType(const std::type_info &type_info) noexcept; - bool operator==(const BaseObjectType &object_type) const noexcept; + auto operator==(const BaseObjectType &object_type) const noexcept -> bool; - [[nodiscard]] std::size_t hash() const noexcept; + [[nodiscard]] auto hash() const noexcept -> std::size_t; - [[nodiscard]] std::string_view name() const noexcept; + [[nodiscard]] auto name() const noexcept -> std::string_view; private: const std::type_info &_type_info; @@ -28,5 +28,5 @@ public: class ObjectTypeHasher { public: - std::size_t operator()(const BaseObjectType &object_type) const noexcept; + auto operator()(const BaseObjectType &object_type) const noexcept -> std::size_t; }; -- cgit v1.2.3-18-g5258