mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
Add some ctors for this allocator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9766 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
af955ba503
commit
f0d6b493f2
@ -36,6 +36,10 @@ struct MallocAllocator {
|
||||
typedef MallocAllocator<U> other;
|
||||
};
|
||||
|
||||
template<typename R>
|
||||
MallocAllocator(const MallocAllocator<R> &) {}
|
||||
MallocAllocator() {}
|
||||
|
||||
pointer address(reference x) const { return &x; }
|
||||
const_pointer address(const_reference x) const { return &x; }
|
||||
size_type max_size() const { return ~0 / sizeof(T); }
|
||||
|
@ -36,6 +36,10 @@ struct MallocAllocator {
|
||||
typedef MallocAllocator<U> other;
|
||||
};
|
||||
|
||||
template<typename R>
|
||||
MallocAllocator(const MallocAllocator<R> &) {}
|
||||
MallocAllocator() {}
|
||||
|
||||
pointer address(reference x) const { return &x; }
|
||||
const_pointer address(const_reference x) const { return &x; }
|
||||
size_type max_size() const { return ~0 / sizeof(T); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user