tmedium.hpp
Go to the documentation of this file.
1
2
#pragma once
3
4
#include "
indep/common.hpp
"
5
#include "
indep/macro/byeolMeta.hpp
"
6
#include "
indep/macro/declThis.hpp
"
7
#include "
indep/macro/unconstFunc.hpp
"
8
9
namespace
by {
10
51
template
<
typename
T>
class
tmedium
{
52
BY(ME(
tmedium
))
53
54
public
:
55
tmedium
(T* value);
56
tmedium
(
const
T* value);
57
58
public
:
59
operator
T&();
60
operator
const
T&()
const
;
61
operator
nbool()
const
;
62
T* operator->();
63
const
T* operator->()
const
BY_CONST_FUNC(operator->());
64
65
public
:
66
nbool has()
const
;
67
T* get();
68
const
T* get()
const
;
69
70
private
:
71
T* _value;
72
};
73
}
byeolMeta.hpp
by::tmedium
Medium class used exclusively in the OR macro for safe reference handling.
Definition:
tmedium.hpp:51
declThis.hpp
common.hpp
unconstFunc.hpp