Searched refs:mp_length (Results 1 – 8 of 8) sorted by relevance
/third_party/python/Objects/ |
D | typeslots.inc | 5 {offsetof(PyMappingMethods, mp_length), offsetof(PyTypeObject, tp_as_mapping)},
|
D | abstract.c | 81 (Py_TYPE(o)->tp_as_mapping && Py_TYPE(o)->tp_as_mapping->mp_length); in _PyObject_HasLen() 1744 if (Py_TYPE(s)->tp_as_mapping && Py_TYPE(s)->tp_as_mapping->mp_length) { in PySequence_Size() 2325 if (m && m->mp_length) { in PyMapping_Size() 2326 Py_ssize_t len = m->mp_length(o); in PyMapping_Size()
|
D | object.c | 1448 Py_TYPE(v)->tp_as_mapping->mp_length != NULL) in PyObject_IsTrue() 1449 res = (*Py_TYPE(v)->tp_as_mapping->mp_length)(v); in PyObject_IsTrue()
|
D | typeobject.c | 5849 COPYMAP(mp_length); in inherit_slots() 8050 MPSLOT("__len__", mp_length, slot_mp_length, wrap_lenfunc,
|
/third_party/boost/libs/mp11/doc/article/ |
D | simple_cxx11_metaprogramming.adoc | 249 To illustrate it, let me introduce the primitive `mp_length`. It's similar to 250 `mp_size`, but while `mp_size` takes a type list as an argument, `mp_length` 254 template<class... T> using mp_length = 257 How would we implement `mp_size` in terms of `mp_length`? One option is to just 262 using type = mp_length<T...>; 274 **mp_length**<int, void, float> 282 template<class L> using mp_size = mp_rename<L, mp_length>; 287 allows us to pass the template alias `mp_length` to `mp_rename` as if it were
|
/third_party/python/Include/cpython/ |
D | object.h | 166 lenfunc mp_length; member
|
/third_party/python/Modules/ |
D | _testcapimodule.c | 1121 lenfunc mp_length = PyType_GetSlot(&PyLong_Type, Py_mp_length); in test_get_statictype_slots() local 1122 if (mp_length != NULL) { in test_get_statictype_slots()
|
/third_party/python/Doc/c-api/ |
D | typeobj.rst | 292 …| :c:member:`~PyMappingMethods.mp_length` | :c:type:`lenfunc` | __… 2203 .. c:member:: lenfunc PyMappingMethods.mp_length
|