initialized
public cpp v1 · immutabletemplate<typename T, T Value> class initialized{public: initialized() : value_(Value) {} initialized(const T &value) : value_(value) {} initialized &operator =(const T &value) { value_ = value; return *this; } operator T() { return value_; } const T &value() const { return value_; }private: T value_;};