Add allocator converting constructor + default constructor

This commit is contained in:
Ion Gaztañaga
2025-09-21 11:12:24 +02:00
parent 85ea77309b
commit ea0af71ac8

View File

@@ -250,6 +250,13 @@ class small_size_type_allocator
typedef unsigned short size_type;
typedef short difference_type;
small_size_type_allocator()
{}
template<class U>
small_size_type_allocator(const small_size_type_allocator<U>&)
{}
pointer allocate(size_type count)
{ return static_cast<value_type*>(::operator new(count * sizeof(value_type))); }