3#include "libxr_def.hpp"
22template <
typename Derived,
typename Data>
36 return static_cast<Derived*
>(
this)->PushBytes(&item);
47 return static_cast<Derived*
>(
this)->PopBytes(&item);
57 return static_cast<Derived*
>(
this)->PopBytes(
nullptr);
ErrorCode Push(const Data &item)
推入一个强类型元素。
ErrorCode Pop(Data &item)
弹出一个强类型元素。
Data ValueType
队列元素类型。 Queue element type.