Sign in
◑
Theme
fuchsia
/
third_party
/
swig
/
refs/heads/main
/
.
/
Examples
/
lua
/
smartptr
/
smartptr.h
blob: d982768d786929e596349e62f36e27d431233832 [
file
] [
edit
]
template
<
class
T
>
class
SmartPtr
{
public
:
SmartPtr
(
T
*
realPtr
=
0
)
{
pointee
=
realPtr
;
}
T
*
operator
->()
const
{
return
pointee
;
}
T
&
operator
*()
const
{
return
*
pointee
;
}
private
:
T
*
pointee
;
};