It is not necessary because all members are static. In fact, the class should
probably be converted to a namespace.
class MultithreadInfo
{
public:
+ /**
+ * Constructor. This constructor is deleted because no instance of
+ * this class needs to be constructed (all members are static).
+ */
+ MultithreadInfo () = delete;
+
/**
* The number of CPUs in the system. At the moment detection of CPUs is only
* implemented on Linux, FreeBSD, and Mac computers. It is one if detection
private:
-
- /**
- * Constructor made private because no instance of this class needs to be
- * constructed as all members are static.
- */
- MultithreadInfo ();
-
/**
* Private function to determine the number of CPUs. Implementation for
* Linux, OSF, SGI, and Sun machines; if no detection of the number of CPUs
}
-MultithreadInfo::MultithreadInfo ()
-{}
-
-
-
std::size_t
MultithreadInfo::memory_consumption ()
{
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams