mirror of
https://github.com/dlang/phobos.git
synced 2025-05-12 07:08:48 +03:00
Fixed issue 6193: Appender.clear() functionality or documentation
This commit is contained in:
parent
fde6d40447
commit
6452327a1b
2 changed files with 4 additions and 1 deletions
|
@ -20,5 +20,6 @@ $(VERSION 054, ddd mm, 2011, =================================================,
|
||||||
$(LI $(BUGZILLA 6076): regression, std.regex: "c.*|d" matches "mm")
|
$(LI $(BUGZILLA 6076): regression, std.regex: "c.*|d" matches "mm")
|
||||||
$(LI $(BUGZILLA 6113): singletons in std.datetime are not created early enough)
|
$(LI $(BUGZILLA 6113): singletons in std.datetime are not created early enough)
|
||||||
$(LI $(BUGZILLA 5705): Swapping identical struct with hasElaborateAssign causes "overlapping array copy" exception)
|
$(LI $(BUGZILLA 5705): Swapping identical struct with hasElaborateAssign causes "overlapping array copy" exception)
|
||||||
|
$(LI $(BUGZILLA 6193): Appender.clear() functionality or documentation)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -1871,7 +1871,9 @@ Appends an entire range to the managed array.
|
||||||
static if(!is(T == immutable) && !is(T == const))
|
static if(!is(T == immutable) && !is(T == const))
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
Clears the managed array.
|
Clears the managed array. This allows the elements of the array to be reused for appending.
|
||||||
|
|
||||||
|
Note that clear is disabled for immutable or const element types, due to the possibility that $(D Appender) might overwrite immutable data.
|
||||||
*/
|
*/
|
||||||
void clear()
|
void clear()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue