- AliasSeq (from std.meta)
public
import std.meta : AliasSeq;
Undocumented in source.
- CopyConstness (from std.traits)
public
import std.traits : Unqual, Unconst, CopyTypeQualifiers, CopyConstness, PointerTarget, hasIndirections, hasElaborateDestructor, isMutable, isAbstractClass, isDynamicArray, isStaticArray, isCallable, Select, isArray;
Undocumented in source.
- CopyTypeQualifiers (from std.traits)
public
import std.traits : Unqual, Unconst, CopyTypeQualifiers, CopyConstness, PointerTarget, hasIndirections, hasElaborateDestructor, isMutable, isAbstractClass, isDynamicArray, isStaticArray, isCallable, Select, isArray;
Undocumented in source.
- ElementEncodingType (from std.range)
public
import std.range : ElementEncodingType;
Undocumented in source.
- MemoryOrder (from core.atomic)
public
import core.atomic : MemoryOrder;
Undocumented in source.
- PointerTarget (from std.traits)
public
import std.traits : Unqual, Unconst, CopyTypeQualifiers, CopyConstness, PointerTarget, hasIndirections, hasElaborateDestructor, isMutable, isAbstractClass, isDynamicArray, isStaticArray, isCallable, Select, isArray;
Undocumented in source.
- Select (from std.traits)
public
import std.traits : Unqual, Unconst, CopyTypeQualifiers, CopyConstness, PointerTarget, hasIndirections, hasElaborateDestructor, isMutable, isAbstractClass, isDynamicArray, isStaticArray, isCallable, Select, isArray;
Undocumented in source.
- Unconst (from std.traits)
public
import std.traits : Unqual, Unconst, CopyTypeQualifiers, CopyConstness, PointerTarget, hasIndirections, hasElaborateDestructor, isMutable, isAbstractClass, isDynamicArray, isStaticArray, isCallable, Select, isArray;
Undocumented in source.
- Unqual (from std.traits)
public
import std.traits : Unqual, Unconst, CopyTypeQualifiers, CopyConstness, PointerTarget, hasIndirections, hasElaborateDestructor, isMutable, isAbstractClass, isDynamicArray, isStaticArray, isCallable, Select, isArray;
Undocumented in source.
- forward (from core.lifetime)
public
import core.lifetime : forward;
Undocumented in source.
- hasElaborateDestructor (from std.traits)
public
import std.traits : Unqual, Unconst, CopyTypeQualifiers, CopyConstness, PointerTarget, hasIndirections, hasElaborateDestructor, isMutable, isAbstractClass, isDynamicArray, isStaticArray, isCallable, Select, isArray;
Undocumented in source.
- hasIndirections (from std.traits)
public
import std.traits : Unqual, Unconst, CopyTypeQualifiers, CopyConstness, PointerTarget, hasIndirections, hasElaborateDestructor, isMutable, isAbstractClass, isDynamicArray, isStaticArray, isCallable, Select, isArray;
Undocumented in source.
- isAbstractClass (from std.traits)
public
import std.traits : Unqual, Unconst, CopyTypeQualifiers, CopyConstness, PointerTarget, hasIndirections, hasElaborateDestructor, isMutable, isAbstractClass, isDynamicArray, isStaticArray, isCallable, Select, isArray;
Undocumented in source.
- isArray (from std.traits)
public
import std.traits : Unqual, Unconst, CopyTypeQualifiers, CopyConstness, PointerTarget, hasIndirections, hasElaborateDestructor, isMutable, isAbstractClass, isDynamicArray, isStaticArray, isCallable, Select, isArray;
Undocumented in source.
- isCallable (from std.traits)
public
import std.traits : Unqual, Unconst, CopyTypeQualifiers, CopyConstness, PointerTarget, hasIndirections, hasElaborateDestructor, isMutable, isAbstractClass, isDynamicArray, isStaticArray, isCallable, Select, isArray;
Undocumented in source.
- isDynamicArray (from std.traits)
public
import std.traits : Unqual, Unconst, CopyTypeQualifiers, CopyConstness, PointerTarget, hasIndirections, hasElaborateDestructor, isMutable, isAbstractClass, isDynamicArray, isStaticArray, isCallable, Select, isArray;
Undocumented in source.
- isMutable (from std.traits)
public
import std.traits : Unqual, Unconst, CopyTypeQualifiers, CopyConstness, PointerTarget, hasIndirections, hasElaborateDestructor, isMutable, isAbstractClass, isDynamicArray, isStaticArray, isCallable, Select, isArray;
Undocumented in source.
- isStaticArray (from std.traits)
public
import std.traits : Unqual, Unconst, CopyTypeQualifiers, CopyConstness, PointerTarget, hasIndirections, hasElaborateDestructor, isMutable, isAbstractClass, isDynamicArray, isStaticArray, isCallable, Select, isArray;
Undocumented in source.
Implementation of a ref counted pointer that points to an object with an embedded reference counter btl.autoptr.common.ControlBlock.
IntrusivePtr retains shared ownership of an object through a pointer.
Several ref counted pointer objects may own the same object.
The object is destroyed and its memory deallocated when either of the following happens:
1. the last remaining ref counted pointer owning the object is destroyed.
2. the last remaining ref counted pointer owning the object is assigned another pointer via various methods like opAssign and store.
The object is destroyed using destructor of type _Type.
A IntrusivePtr can not share ownership of an object while storing a pointer to another object (use SharedPtr for that).
A IntrusivePtr may also own no objects, in which case it is called empty.
_Type must contain one property of type ControlBlock (this property contains ref counting). If this property is shared then ref counting is atomic.
If _Type is const/immutable then ControlBlock cannot be modified => ref counting doesn't work and IntrusivePtr can be only moved.
If multiple threads of execution access the same IntrusivePtr (shared IntrusivePtr) then only some methods can be called (load, store, exchange, compareExchange, useCount).
Template parameters:
_Type type of managed object
_weakPtr if true then IntrusivePtr represent weak ptr