Added is_undefined method.

This commit is contained in:
yhirose 2015-02-08 23:02:10 -05:00
parent 0dc3cd6da4
commit feebade357

View File

@ -67,6 +67,10 @@ public:
delete content_; delete content_;
} }
bool is_undefined() const {
return content_ == nullptr;
}
template <typename T> template <typename T>
T& get() { T& get() {
assert(content_); assert(content_);