CNORXZ
Container with Native Operation Routines and Expressions
Loading...
Searching...
No Matches
memcount.h
Go to the documentation of this file.
1// -*- C++ -*-
12#ifndef __cxz_memcount_h__
13#define __cxz_memcount_h__
14
15#include "base/types.h"
16
17namespace CNORXZ
18{
26 {
27 private:
28 static SizeT sMemUsage;
33 static void add(SizeT x);// { sMemUsage += x; }
34
38 static void sub(SizeT x);// { sMemUsage -= x; }
39
40 public:
42 MemCount() = delete;
43
45 static SizeT usage();
46
47 template <typename T>
48 friend class Allocator;
49 };
50
51} // namespace CNORXZ
52
53#endif
static SizeT usage()
Definition memcount.cc:28
uint64_t SizeT
Definition types.h:38
Declaration of all library types.