7 template <
class T,
class Allocator>
19 NiTSet(std::uint32_t a_initialSize = 0) :
21 _capacity(a_initialSize),
25 _data = allocator_type::Allocate(_capacity);
31 allocator_type::Deallocate(_data);
36 assert(a_pos <
size());
42 assert(a_pos <
size());
96 [[nodiscard]]
bool empty()
const
98 return _capacity == 0;
113 std::uint32_t _capacity;
116 static_assert(
sizeof(NiTSet<
void*, NiTMallocInterface<void*>>) == 0x10);
126 static_assert(
sizeof(NiTObjectSet<void*>) == 0x10);
136 static_assert(
sizeof(NiTPrimitiveSet<void*>) == 0x10);
Definition: NiTCollection.h:32
Definition: NiTCollection.h:47
NiTObjectSet(std::uint32_t a_initialSize=0)
Definition: NiTSet.h:122
NiTPrimitiveSet(std::uint32_t a_initialSize=0)
Definition: NiTSet.h:132
T * iterator
Definition: NiTSet.h:16
bool empty() const
Definition: NiTSet.h:96
const_iterator cbegin() const
Definition: NiTSet.h:76
size_type size() const
Definition: NiTSet.h:101
reference back()
Definition: NiTSet.h:56
reference operator[](size_type a_pos)
Definition: NiTSet.h:34
const_reference front() const
Definition: NiTSet.h:51
~NiTSet()
Definition: NiTSet.h:29
std::uint32_t size_type
Definition: NiTSet.h:13
size_type capacity() const
Definition: NiTSet.h:106
const_reference operator[](size_type a_pos) const
Definition: NiTSet.h:40
iterator end()
Definition: NiTSet.h:81
Allocator allocator_type
Definition: NiTSet.h:12
const_iterator cend() const
Definition: NiTSet.h:91
const_iterator end() const
Definition: NiTSet.h:86
T value_type
Definition: NiTSet.h:11
reference front()
Definition: NiTSet.h:46
iterator begin()
Definition: NiTSet.h:66
const value_type & const_reference
Definition: NiTSet.h:15
value_type & reference
Definition: NiTSet.h:14
const T * const_iterator
Definition: NiTSet.h:17
const_reference back() const
Definition: NiTSet.h:61
NiTSet(std::uint32_t a_initialSize=0)
Definition: NiTSet.h:19
const_iterator begin() const
Definition: NiTSet.h:71
Definition: AbsorbEffect.h:6