Lines Matching defs:item_count
24 size_t item_count = 0;
31 : store{}, item_count{} {
39 : store{}, item_count{} {
46 : store{}, item_count{} {
53 if (item_count == CAPACITY)
55 store[item_count] = obj;
56 ++item_count;
62 return store[item_count - 1];
67 return store[item_count - 1];
71 if (item_count == 0)
73 inline_memset(&store[item_count - 1], 0, sizeof(T));
74 --item_count;
79 LIBC_ASSERT(idx < item_count);
84 LIBC_ASSERT(idx < item_count);
88 LIBC_INLINE constexpr bool empty() const { return item_count == 0; }
90 LIBC_INLINE constexpr size_t size() const { return item_count; }
94 inline_memset(store.data(), 0, sizeof(T) * item_count);
95 item_count = 0;
112 return reverse_iterator{&store[item_count]};
117 LIBC_INLINE constexpr iterator end() { return iterator{&store[item_count]}; }
121 return const_iterator{&store[item_count]};