Constructor initializer list
Applies to: cpp
A constructor initializer list initializes C++ members before the constructor body runs.
Robot(double x) : x_(x) {}
See also: constructor, class
Applies to: cpp
A constructor initializer list initializes C++ members before the constructor body runs.
Robot(double x) : x_(x) {}
See also: constructor, class