forked from dlang/phobos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
changelog.dd
97 lines (79 loc) · 2.98 KB
/
changelog.dd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
Ddoc
$(COMMENT Pending changelog for 2.069. This will get copied to dlang.org and
cleared when master gets merged into stable prior to 2.069.
)
$(BUGSTITLE Library Changes,
$(LI $(RELATIVE_LINK2 more-rangified-functions, More phobos functions were rangified.))
$(LI $(RELATIVE_LINK2 std-algorithm-moveEmplace, `moveEmplace` was added))
)
$(BUGSTITLE Library Changes,
$(LI $(LNAME2 more-rangified-functions, More phobos functions were rangified.)
$(P Following the work released with $(RELATIVE_LINK2 rangified-functions,
2.068.0) more phobos functions were rangified.
)
$(BOOKTABLE Rangified Functions:,
$(TR $(TH Module) $(TH Functions)
)
$(TR $(TD $(STDMODREF stdio, std.stdio))
$(TD
<a href="phobos/std_file.html#.File.this">File.this</a>
)
)
$(TR $(TD $(STDMODREF file, std.file))
$(TD
$(XREF file, append)
$(XREF file, chdir)
$(XREF file, copy)
$(XREF file, exists)
$(XREF file, getAttributes)
$(XREF file, getLinkAttributes)
$(XREF file, getSize)
$(XREF file, getTimes)
$(XREF file, getTimesWin)
$(XREF file, isDir)
$(XREF file, isFile)
$(XREF file, isSymlink)
$(XREF file, mkdir)
$(XREF file, read)
$(XREF file, readText)
$(XREF file, remove)
$(XREF file, rename)
$(XREF file, rmdir)
$(XREF file, setAttributes)
$(XREF file, setTimes)
$(XREF file, timeLastModified)
$(XREF file, write)
)
)
)
)
$(LI $(LNAME2 std-algorithm-moveEmplace, A combined `moveEmplace` was added.)
$(P $(XREF algorithm_mutation, MoveEmplace) efficiently combines $(XREF
algorithm_mutation, move) with $(XREF conv, emplace) thus avoids having
to initialize and destroy a value before moving into uninitialized data.
)
------
T* moveToHeap(T)(ref T value)
{
import core.memory : GC;
auto ptr = cast(T*)GC.malloc(T.sizeof);
// move value and emplace it into ptr
moveEmplace(value, *ptr);
return ptr;
}
------
$(P There are also $(XREF algorithm_mutation, moveEmplaceAll)
and $(XREF algorithm_mutation, moveEmplaceSome) as counterparts of
$(XREF algorithm_mutation, moveAll) and $(XREF algorithm_mutation, moveSome).
)
)
)
Macros:
TITLE=Change Log
BUGSTITLE = <div class="bugsfixed">$(H4 $1) $(OL $2 )</div>
RELATIVE_LINK2=<a href="#$1">$+</a>
LNAME2=<a class="anchor" title="Permalink to this section" id="$1" href="#$1">$+</a>
STDMODREF = <a href="phobos/std_$1.html">$2</a>
XREF = <a href="phobos/std_$1.html#$2">$2</a>
CXREF = <a href="phobos/core_$1.html#$2">$2</a>
BOOKTABLE = <table><caption>$1</caption>$+</table>