finish LSB

This commit is contained in:
2024-07-31 08:30:02 +00:00
parent 284a722015
commit 173a2904e5
5 changed files with 200 additions and 8 deletions

View File

@ -39,6 +39,10 @@ public:
this->_M_assigned = true;
this->_M_new = static_cast<max_size_t>(value);
}
auto peek() const -> max_size_t { // this function should only be used for convinience within the same module
if(this->_M_assigned) return this->_M_new;
return this->_M_old;
}
explicit operator max_size_t() const { return this->_M_old; }
explicit operator bool() const { return this->_M_old; }