mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-01 02:57:53 +00:00
Allow metadata object to be non-owning (#73)
This commit is contained in:
committed by
Matias Fontanini
parent
841e632fbd
commit
f543810515
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user