}
}
+private:
+ ~Entry() = default;
+
+public:
// function improves estimate for expected size of message
void hint_size() {
if (m_exp_len != NULL) {
int snprintf(char* dst, size_t avail) const {
return m_streambuf.snprintf(dst, avail);
}
+
+ void destroy() {
+ if (m_exp_len != NULL) {
+ this->~Entry();
+ ::operator delete(this);
+ } else {
+ delete(this);
+ }
+ }
};
}