102 template <
typename T>
109 uint8_t
const* in =
reinterpret_cast<uint8_t const*
>(ptr);
Used as a std::shared_ptr deleter (second argument) to overload delete ptr with delete[] ptr.
Definition util.h:103
void operator()(T const *ptr)
Called by std::shared_ptr when its reference count reaches zero.
Definition util.h:108
#define EXPORT_SYMBOL
Definition common.h:25
std::string quote(const std::string &x)
Puts quotation marks around a string and escapes the appropriate characters.
EXPORT_SYMBOL const std::string dtype_to_format(dtype dt, const std::string &format="")
Convert a dtype enum into a NumPy format string.
EXPORT_SYMBOL const std::string dtype_to_name(dtype dt)
Returns the name associated with a given dtype.
Definition ArrayBuilder.h:14
timedelta64
Definition util.h:41
quoted_string_missing
Definition util.h:85
division_by_zero
Definition util.h:82
uint64
Definition util.h:32
int16
Definition util.h:26
user_halt
Definition util.h:74
uint8
Definition util.h:29
varint_too_big
Definition util.h:83
int64
Definition util.h:28
stack_overflow
Definition util.h:77
recursion_depth_exceeded
Definition util.h:75
not_ready
Definition util.h:72
complex256
Definition util.h:39
float16
Definition util.h:33
float64
Definition util.h:35
boolean
Definition util.h:24
enumeration_missing
Definition util.h:86
uint32
Definition util.h:31
float128
Definition util.h:36
read_beyond
Definition util.h:78
NOT_PRIMITIVE
Definition util.h:23
datetime64
Definition util.h:40
uint16
Definition util.h:30
skip_beyond
Definition util.h:80
text_number_missing
Definition util.h:84
seek_beyond
Definition util.h:79
rewind_beyond
Definition util.h:81
int32
Definition util.h:27
is_done
Definition util.h:73
complex64
Definition util.h:37
complex128
Definition util.h:38
stack_underflow
Definition util.h:76
float32
Definition util.h:34