mirror of
https://github.com/boostorg/container.git
synced 2026-01-19 04:02:17 +00:00
Add allocator converting constructor + default constructor
This commit is contained in:
@@ -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))); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user