Loading...
Searching...
No Matches
tmedium.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include "indep/common.hpp"
8
9namespace by {
10
56 template <typename T> class tmedium {
57 BY(ME(tmedium))
58
59 public:
60 tmedium(T* value);
61 tmedium(const T* value);
62
63 public:
64 operator T&();
65 operator const T&() const;
66 operator nbool() const;
67 T* operator->();
68 const T* operator->() const BY_CONST_FUNC(operator->());
69
70 public:
71 nbool has() const;
72 T* get();
73 const T* get() const;
74
75 private:
76 T* _value;
77 };
78} // namespace by
Medium class used exclusively in the OR macro for safe reference handling.
Definition tmedium.hpp:56
Weak reference smart pointer with type-safe access.
Definition tweak.hpp:16
to Top