Add is_null iterator method

Add method to return Boolean if iterator is uninitialized
This commit is contained in:
jwc 2018-11-30 18:31:55 -05:00
parent ef90d62ddf
commit 49a9977510

View File

@ -78,6 +78,11 @@ class iter_impl
/// default constructor
iter_impl() = default;
// test uninitialized iterator
bool is_null() {
return m_object == nullptr;
}
/*!
@brief constructor for a given JSON instance
@param[in] object pointer to a JSON object for this iterator