Github   Telegram
Loading...
Searching...
No Matches
entry.hpp
Go to the documentation of this file.
1#pragma once
2
6
10
11USERVER_NAMESPACE_BEGIN
12
13namespace utils::statistics {
14
19class [[nodiscard]] Entry final {
20 public:
21 Entry();
22
23 Entry(const Entry& other) = delete;
24 Entry& operator=(const Entry& other) = delete;
25 Entry(Entry&& other) noexcept;
26 Entry& operator=(Entry&& other) noexcept;
27 ~Entry();
28
29 void Unregister() noexcept;
30
31 private:
32 struct Impl;
33
34 friend class Storage; // in RegisterExtender()
35
36 explicit Entry(const Impl& impl) noexcept;
37
39};
40
41} // namespace utils::statistics
42
43USERVER_NAMESPACE_END