Lines Matching defs:nullptr

176     /// The default constructor creates a handle with a ``nullptr``-valued pointer
205 explicit operator bool() const { return m_ptr != nullptr; }
215 bool check() const { return m_ptr != nullptr; }
217 PyObject *m_ptr = nullptr;
238 object(object &&other) noexcept { m_ptr = other.m_ptr; other.m_ptr = nullptr; }
243 Resets the internal pointer to ``nullptr`` without without decreasing the
249 m_ptr = nullptr;
264 other.m_ptr = nullptr;
374 template <> inline bool isinstance<object>(handle obj) { return obj.ptr() != nullptr; }
711 PyObject *key = nullptr, *value = nullptr;
786 bool check() const { return m_ptr != nullptr && (bool) CheckFun(m_ptr); } \
787 static bool check_(handle h) { return h.ptr() != nullptr && CheckFun(h.ptr()); }
938 PyObject *unicode = PyUnicode_FromEncodedObject(str_value, "utf-8", nullptr);
1038 if (value == -1) return nullptr;
1151 explicit capsule(const void *value, const char *name = nullptr, void (*destructor)(PyObject *) = nullptr)
1159 : object(PyCapsule_New(const_cast<void*>(value), nullptr, destruct), stolen_t{}) {
1165 m_ptr = PyCapsule_New(const_cast<void *>(value), nullptr, [](PyObject *o) {
1167 void *ptr = PyCapsule_GetPointer(o, nullptr);
1179 m_ptr = PyCapsule_New(reinterpret_cast<void *>(destructor), nullptr, [](PyObject *o) {
1180 auto destructor = reinterpret_cast<void (*)()>(PyCapsule_GetPointer(o, nullptr));
1238 return PyObject_CallFunctionObjArgs((PyObject *) &PyDict_Type, op, nullptr);
1280 set() : object(PySet_New(nullptr), stolen_t{}) {
1347 buf.suboffsets = nullptr;
1349 buf.internal = nullptr;
1388 PyObject *unicode = PyUnicode_FromEncodedObject(str_value, "utf-8", nullptr);