MCPcopy Create free account
hub / github.com/pybind/pybind11 / ssize_t_cast

Function ssize_t_cast

include/pybind11/detail/common.h:550–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548
549template <typename IntType>
550inline ssize_t ssize_t_cast(const IntType &val) {
551 static_assert(sizeof(IntType) <= sizeof(ssize_t), "Implicit narrowing is not permitted.");
552 return static_cast<ssize_t>(val);
553}
554
555/// Approach used to cast a previously unknown C++ instance into a Python object
556enum class return_value_policy : uint8_t {

Callers 13

sizeMethod · 0.85
getMethod · 0.85
setMethod · 0.85
getMethod · 0.85
setMethod · 0.85
getMethod · 0.85
setMethod · 0.85
strMethod · 0.85
bytesMethod · 0.85
bytearrayMethod · 0.85
tupleMethod · 0.85
listMethod · 0.85

Calls

no outgoing calls

Tested by 1

sizeMethod · 0.68