Allow metadata object to be non-owning (#73)

This commit is contained in:
Alex Damian
2018-05-28 14:30:01 -04:00
committed by Matias Fontanini
parent 841e632fbd
commit f543810515
3 changed files with 73 additions and 3 deletions

View File

@@ -82,6 +82,13 @@ public:
* \param partition The partition to check
*/
bool is_partition_available(int partition) const;
/**
* Indicates whether this topic is valid (not null)
*/
explicit operator bool() const {
return handle_ != nullptr;
}
/**
* Returns the rdkakfa handle