diff --git a/peglib.h b/peglib.h index cb2e24f..8acd0e2 100644 --- a/peglib.h +++ b/peglib.h @@ -67,6 +67,10 @@ public: delete content_; } + bool is_undefined() const { + return content_ == nullptr; + } + template T& get() { assert(content_);