Lines Matching refs:size_t

551     using key_type = size_t;
553 static object get(handle obj, size_t index) {
559 static void set(handle obj, size_t index, handle val) {
568 using key_type = size_t;
570 static object get(handle obj, size_t index) {
576 static void set(handle obj, size_t index, handle val) {
585 using key_type = size_t;
587 static object get(handle obj, size_t index) {
593 static void set(handle obj, size_t index, handle val) {
682 reference dereference() const { return {obj, static_cast<size_t>(index)}; }
892 str(const char *c, size_t n)
924 return std::string(buffer, (size_t) length);
950 inline str operator"" _s(const char *s, size_t size) { return {s, size}; }
965 bytes(const char *c, size_t n)
980 return std::string(buffer, (size_t) length);
1129 bool compute(size_t length, size_t *start, size_t *stop, size_t *step,
1130 size_t *slicelength) const {
1201 explicit tuple(size_t size = 0) : object(PyTuple_New((ssize_t) size), stolen_t{}) {
1204 size_t size() const { return (size_t) PyTuple_Size(m_ptr); }
1206 detail::tuple_accessor operator[](size_t index) const { return {*this, index}; }
1224 size_t size() const { return (size_t) PyDict_Size(m_ptr); }
1245 size_t size() const { return (size_t) PySequence_Size(m_ptr); }
1247 detail::sequence_accessor operator[](size_t index) const { return {*this, index}; }
1256 explicit list(size_t size = 0) : object(PyList_New((ssize_t) size), stolen_t{}) {
1259 size_t size() const { return (size_t) PyList_Size(m_ptr); }
1261 detail::list_accessor operator[](size_t index) const { return {*this, index}; }
1268 template <typename T> void insert(size_t index, T &&val) const {
1283 size_t size() const { return (size_t) PySet_Size(m_ptr); }
1341 for (size_t i = 0; i < (size_t) info.ndim; ++i) {
1362 inline size_t len(handle h) {
1366 return (size_t) result;
1369 inline size_t len_hint(handle h) {
1381 return (size_t) result;