SyTen
syten::MemoryUsage::MemorySize Struct Reference

A certain number of bytes, a simple wrapper around std::size_t. More...

#include <memory_size.h>

+ Collaboration diagram for syten::MemoryUsage::MemorySize:

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...
 
MemorySizeoperator+= (MemorySize other)
 addition forwards. More...
 

Public Attributes

std::size_t value {0}
 data More...
 

Detailed Description

A certain number of bytes, a simple wrapper around std::size_t.

Returned by allocSize(), totalSize() and stackSize(), useful to force pretty-printing.


The documentation for this struct was generated from the following files: