Make allocator getter public
This commit is contained in:
parent
8733b93ca0
commit
702d1b02e0
@ -38,7 +38,7 @@ mixin template DefaultAllocator()
|
|||||||
*
|
*
|
||||||
* Precondition: $(D_INLINECODE allocator_ !is null)
|
* Precondition: $(D_INLINECODE allocator_ !is null)
|
||||||
*/
|
*/
|
||||||
this(shared Allocator allocator) pure nothrow @safe @nogc
|
this(shared Allocator allocator) @nogc nothrow pure @safe
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
assert(allocator !is null);
|
assert(allocator !is null);
|
||||||
@ -56,7 +56,7 @@ mixin template DefaultAllocator()
|
|||||||
*
|
*
|
||||||
* Postcondition: $(D_INLINECODE allocator !is null)
|
* Postcondition: $(D_INLINECODE allocator !is null)
|
||||||
*/
|
*/
|
||||||
protected @property shared(Allocator) allocator() pure nothrow @safe @nogc
|
@property shared(Allocator) allocator() @nogc nothrow pure @safe
|
||||||
out (allocator)
|
out (allocator)
|
||||||
{
|
{
|
||||||
assert(allocator !is null);
|
assert(allocator !is null);
|
||||||
@ -71,7 +71,7 @@ mixin template DefaultAllocator()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// ditto
|
/// ditto
|
||||||
@property shared(Allocator) allocator() const pure nothrow @trusted @nogc
|
@property shared(Allocator) allocator() const @nogc nothrow pure @trusted
|
||||||
out (allocator)
|
out (allocator)
|
||||||
{
|
{
|
||||||
assert(allocator !is null);
|
assert(allocator !is null);
|
||||||
@ -88,11 +88,11 @@ mixin template DefaultAllocator()
|
|||||||
|
|
||||||
// From druntime
|
// From druntime
|
||||||
extern (C)
|
extern (C)
|
||||||
private void _d_monitordelete(Object h, bool det) pure nothrow @nogc;
|
private void _d_monitordelete(Object h, bool det) @nogc nothrow pure;
|
||||||
|
|
||||||
shared Allocator allocator;
|
shared Allocator allocator;
|
||||||
|
|
||||||
private shared(Allocator) getAllocatorInstance() nothrow @nogc
|
private shared(Allocator) getAllocatorInstance() @nogc nothrow
|
||||||
{
|
{
|
||||||
if (allocator is null)
|
if (allocator is null)
|
||||||
{
|
{
|
||||||
@ -115,7 +115,7 @@ private shared(Allocator) getAllocatorInstance() nothrow @nogc
|
|||||||
*
|
*
|
||||||
* Postcondition: $(D_INLINECODE allocator !is null).
|
* Postcondition: $(D_INLINECODE allocator !is null).
|
||||||
*/
|
*/
|
||||||
@property shared(Allocator) defaultAllocator() pure nothrow @trusted @nogc
|
@property shared(Allocator) defaultAllocator() @nogc nothrow pure @trusted
|
||||||
out (allocator)
|
out (allocator)
|
||||||
{
|
{
|
||||||
assert(allocator !is null);
|
assert(allocator !is null);
|
||||||
@ -133,7 +133,7 @@ do
|
|||||||
*
|
*
|
||||||
* Precondition: $(D_INLINECODE allocator !is null).
|
* Precondition: $(D_INLINECODE allocator !is null).
|
||||||
*/
|
*/
|
||||||
@property void defaultAllocator(shared(Allocator) allocator) nothrow @safe @nogc
|
@property void defaultAllocator(shared(Allocator) allocator) @nogc nothrow @safe
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
assert(allocator !is null);
|
assert(allocator !is null);
|
||||||
@ -285,7 +285,7 @@ package(tanya) void[] finalize(T)(ref T* p)
|
|||||||
}
|
}
|
||||||
|
|
||||||
package(tanya) void[] finalize(T)(ref T p)
|
package(tanya) void[] finalize(T)(ref T p)
|
||||||
if (is(T == class) || is(T == interface))
|
if (isPolymorphicType!T)
|
||||||
{
|
{
|
||||||
if (p is null)
|
if (p is null)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user