RCString.this

Constructs a qualified rcstring that will use the provided allocator object. For immutable objects, a RCISharedAllocator must be supplied.

  1. this(A allocator)
    struct RCString
    this
    (
    A
    this Q
    )
    if (
    !is(Q == shared) &&
    (
    is(A == RCISharedAllocator) ||
    !is(Q == immutable)
    )
    &&
    (
    is(A == RCIAllocator) ||
    is(A == RCISharedAllocator)
    )
    )
  2. this(ubyte[] bytes)
  3. this(A allocator, ubyte[] bytes)
  4. this(string s)
  5. this(dstring s)
  6. this(wstring s)
  7. this(A allocator, R r)
  8. this(R r)

Parameters

allocator A

Examples

import std.experimental.allocator : theAllocator, processAllocator;

auto a = RCString(theAllocator);
auto ca = const RCString(processAllocator);
auto ia = immutable RCString(processAllocator);

Meta