DYT/Tool/matlab/include/MatlabDataArray/matlab_extdata_defs.hpp

27 lines
437 B
C++
Raw Permalink Normal View History

2024-11-22 15:19:31 +00:00
/* Copyright 2016 The MathWorks, Inc. */
#ifndef MATLAB_EXTDATA_DEFS_HPP_
#define MATLAB_EXTDATA_DEFS_HPP_
#include <functional>
#include <memory>
namespace matlab {
namespace data {
using buffer_deleter_t = void(*)(void*);
template <typename T>
using buffer_ptr_t = std::unique_ptr<T[], buffer_deleter_t>;
using void_buffer_ptr_t = std::unique_ptr<void, buffer_deleter_t>;
}
}
#endif