19 #ifndef DATATOOLS_SAFE_SERIAL_H 20 #define DATATOOLS_SAFE_SERIAL_H 60 return data_.size() == 0;
90 DT_THROW_IF(
true, std::logic_error,
"Cannot insert new data element!");
92 last_ = data_.rbegin();
104 typename std::list<T> data_;
105 typename std::list<T>::reverse_iterator last_;
111 #endif // DATATOOLS_SAFE_SERIAL_H
Utility macros for exception handling.
#define DT_THROW_IF(Condition, ExceptionType, Message)
Definition: exception.h:76