Match CFontImageDef, can't link due to extraneous TToken destructor

Former-commit-id: 77b921601a
This commit is contained in:
2022-10-01 01:32:56 -07:00
parent adb54a9892
commit ba75752e14
12 changed files with 157 additions and 57 deletions

View File

@@ -40,6 +40,22 @@ public:
inline const_iterator end() const { return const_iterator(xc_items + x4_count); }
inline vector() : x4_count(0), x8_capacity(0), xc_items(NULL) {}
inline vector(int count) : x4_count(0), x8_capacity(0), xc_items(0) { reserve(count); }
inline explicit vector(const T& v) : x4_count(1), x8_capacity(1) {
if (x4_count * sizeof(T) == 0) {
xc_items = NULL;
} else {
x0_allocator.allocate(xc_items, x4_count * sizeof(T));
}
new (&xc_items[0]) T(v);
}
vector(int count, const T& v) : x4_count(count), x8_capacity(count) {
if (x4_count * sizeof(T) == 0) {
xc_items = NULL;
} else {
x0_allocator.allocate(xc_items, x4_count * sizeof(T));
}
uninitialized_fill_n(xc_items, x8_capacity, v);
}
vector(const vector& other) {
x4_count = other.x4_count;
x8_capacity = other.x8_capacity;