aboutsummaryrefslogtreecommitdiff
path: root/src/DI/object_type.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-29 17:40:04 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:57 +0200
commita039c8ad36779903571419cb06cd052f8fc41512 (patch)
tree4fdced6941a048bdd4b032fab7012bca00a6028e /src/DI/object_type.hpp
parentacf72075ed32e5a679d49ffedc0c28d8ac2aea8b (diff)
refactor: use trailing return types
Diffstat (limited to 'src/DI/object_type.hpp')
-rw-r--r--src/DI/object_type.hpp8
1 files changed, 4 insertions, 4 deletions
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;
};