4#include "indep/helper/tmedium.inl"
10#define TEMPLATE template <typename T>
13 ME::tmay(
const T& value): super(value) {}
16 ME::tmay(
const tmedium<T>& it): super() {
21 ME::operator T&() {
return *get(); }
24 ME::operator
const T&()
const {
return *get(); }
27 T* ME::operator->() {
return get(); }
30 T& ME::operator*() {
return *get(); }
33 ME::operator nbool()
const {
return has(); }
36 nbool ME::has()
const {
return this->has_value(); }
39 T* ME::get() {
return has() ? &this->value() : nullptr; }
42 void ME::rel() { this->reset(); }
45 void ME::set(
const T& args) { this->emplace(args); }