1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <string> namespace demo { class Client { public: Client() = default; void fetch(int id); private: std::string name_; }; void Client::fetch(int id) {} enum class Mode { Fast, Slow }; int add(int a, int b) { return a + b; } }