class CharVector { public: CharVector() {...} CharVector(char* new) {...} CharVector(CharVector&& other) {...} CharVector& operator=(CharVector&& other) {...} // Copy constructor disallowed // Getter/setter size_t Length() const { return len_; } private: size_t resize(); double load_factor_; size_t len_; char *memory_; }; static const char* kMessage = "Hello"; int main(int argc, char **argv) { CharVector cv(kMessage); size_t length = cv.Length(); }
static const char* kMessage = "Hello"; static size_t kMessageLen = 5;
void Foo() -> void Bar() ---> void Baz() -----> void Faz()