NIL - .
NULL, .
LISP "head" "tail". , NIL.
NIL , NIL. :
struct NIL;
template <typename H, typename T=NIL> struct Lst {
typedef H Head;
typedef T Tail;
};
struct NIL: Lst {};
NIL .
NIL , ( ). , , , NIL ; , , NIL.
typedef "" , , . , . :
struct node {
node* head, *tail;
};
struct NIL:node{
NIL() : node{this, this} {}
};