# Linux Kernel Module Cheat

##### 27.3.1.1. C++ constructor

- userland/cpp/initializer_list_constructor.cpp: documents stuff like `std::vector<int> v{0, 1};` and `std::initializer_list`

- userland/cpp/most_vexing_parse.cpp: the most vexing parse is a famous constructor vs function declaration syntax gotcha!

  - https://en.wikipedia.org/wiki/Most_vexing_parse

  - http://stackoverflow.com/questions/180172/default-constructor-with-empty-brackets

- `virtual` and polymorphism

  - userland/cpp/virtual.cpp

- C++ rule of five