A certain number of bytes, a simple wrapper around std::size_t
.
More...
#include <memory_size.h>
Public Member Functions | |
MemorySize ()=default | |
default ctor. More... | |
MemorySize (std::size_t v) | |
Standard ctor, conversion from std::size_t is trivial. More... | |
operator std::size_t () const | |
conversion to std::size_t is trivial. More... | |
MemorySize | operator+ (MemorySize other) const |
addition forwards. More... | |
MemorySize & | operator+= (MemorySize other) |
addition forwards. More... | |
Public Attributes | |
std::size_t | value {0} |
data More... | |
A certain number of bytes, a simple wrapper around std::size_t
.
Returned by allocSize()
, totalSize()
and stackSize()
, useful to force pretty-printing.