StringImpl.take

Take ownership of the memory owned by the string.

If the string is tagged as read-only a copy of the string is returned.

struct StringImpl(T)
@nogc
immutable(T)[]
take
()

Return Value

Type: immutable(T)[]

The memory which was owned by the nulib string, the nulib string is reset in the process.

Meta