by::tmay< T > Class Template Reference

Optional value wrapper with byeol-style interface. More...

#include <tmay.hpp>

Inheritance diagram for by::tmay< T >:
by::tres< T, R >

Public Member Functions

 tmay (const T &value)
 
 tmay (const tmedium< T > &value)
 
T * operator-> ()
 
const T * operator-> () const BY_CONST_FUNC(operator->())
 
T & operator* ()
 
const T & operator* () const BY_CONST_FUNC(operator*())
 
 operator T& ()
 
 operator const T & () const
 
 operator nbool () const
 
nbool has () const
 
T * get ()
 
const T * get () const BY_CONST_FUNC(get()) virtual void rel()
 
virtual void set (const T &arg)
 

Detailed Description

template<typename T>
class by::tmay< T >

Optional value wrapper with byeol-style interface.

Wrapper around std::optional with improved function names and signatures consistent with byeol conventions. Provides safe value handling for return-by-value scenarios. Use tstr<T> or tweak<T> for return-by-reference cases.


The documentation for this class was generated from the following file: