Nothing, Null, Empty, Default

Files CCore/inc/gadget/Nothing.h CCore/src/gadget/Nothing.cpp

Nothing, Null, Empty, Default — are Words of the type NothingType.


/* words */ 

enum NothingType 
 { 
  Nothing = 0,
  Null    = 0,
  Empty   = 0,
  Default = 0
 };

They can be used to define an implicit constructor of a class.


class C
 {
  public:

   C(NothingType) { .... }
 };

Objects of such classes can be constructed using one of these Words:


C func()
 {
  return Empty; // explicit intention
 }