11#ifndef __BE_MEMORY_AUTOBUFFER__
12#define __BE_MEMORY_AUTOBUFFER__
71 int (*copyCtor)(T**, T*)=
nullptr);
85 int (*_copyCtor)(T**, T*);
129 _copyCtor = copy._copyCtor;
130 _handsOff = copy._handsOff;
140 if (_copyCtor ==
nullptr)
142 "constructor is nullptr");
143 if ((_copyCtor)(&_data, copy._data) != 0)
166 int (*copyCtor)(T**, T*))
179 _copyCtor = copyCtor;
182 if ((_ctor)(&_data) != 0)
207 _copyCtor = copy._copyCtor;
208 _handsOff = copy._handsOff;
215 if (_copyCtor ==
nullptr)
219 if ((_copyCtor)(&_data, copy._data) != 0)
Error when reading data from an external source.
An invalid parameter was passed to a constructor or method.
T value_type
Manage a memory buffer.
AutoBuffer(const AutoBuffer ©)
const T & const_reference
AutoBuffer(int(*ctor)(T **), void(*dtor)(T *), int(*copyCtor)(T **, T *)=nullptr)
AutoBuffer & operator=(const AutoBuffer &other)
This software was developed at the National Institute of Standards and Technology (NIST) by employees...