Peter Alexander
1e7246b201
Fix Issue 14817 - std.algorithm.copy/std.file.copy conflict
...
https://github.com/D-Programming-Language/phobos/pull/2799 introduced a regression, which prevented module that imported both std.algorithm and std.file to use unqualified calls to copy(string, string). The regression was caused by the removal of template constraints, which were preventing the std.algorithm copy from being considered for overload resolution.
std.algorithm.copy has two paths: an path for array copies, and a path for all other copies. Previously they were forked using static if inside function. Now the decision is made using template constraints.
2015-09-12 14:10:40 +03:00
Dmitry Olshansky
94f718e5c6
Merge pull request #3531 from MartinNowak/moveAllAssert
...
use assert instead of enforce for moveAll
2015-08-07 17:23:44 +03:00
Martin Nowak
901908ec7f
remove workaround for invalid bug 14878
...
- have to use `(T t) @safe {}`
- turns out that T in `(T) @safe {}` is the parameter
name of a polymorphic lambda not the parameter type
of a function literal
2015-08-07 01:03:22 +02:00
Martin Nowak
81ca4a8cc5
use assert instead of enforce for moveAll
...
- it's a programming error to call the function w/o
knowing if tgt can accomodate all of src
- for cases where it cannot be known in advance
there is moveSome which will stop when either
range is exhausted
- allows to make moveAll nothrow @nogc depending
on the destructor of T
2015-08-07 00:30:48 +02:00
Martin Nowak
3ccea802ba
test moveAll with input range
2015-08-06 13:38:31 +02:00
Martin Nowak
d4d301b35c
add moveEmplaceAll and moveEmplaceSome variant
...
- similar to their moveAll and moveSome counterparts
but assume that target is an uninitialized range
2015-08-06 13:30:10 +02:00
Martin Nowak
980351894b
make move and moveEmplace attribute correct
...
- moveEmplace is unsafe (@system)
- move inherits attributes from T's destructor
2015-08-06 13:30:10 +02:00
Martin Nowak
aefe7e5557
implement moveEmplace
...
- combined move and emplace
- moves a value and emplaces it into an
uninitialized value of the same type
- more efficient than init + move
2015-08-06 11:58:31 +02:00
Peter Alexander
1f0f8ef772
Fix Issue 13650 - Rebased
2015-06-29 22:17:09 +01:00
anonymous
b28962635f
fix package XREFs
...
Also add escaping underscores in some places, and rewrap to 80 columns
where touching anyway.
2015-06-15 22:30:41 +02:00
Walter Bright
d9a9826e55
Revert "Introducing std.meta package"
2015-05-06 14:36:45 -07:00
Dicebot
82f54a38d3
TypeTuple -> MetaList inside Phobos
2015-05-05 22:22:11 +03:00
Dicebot
73f773838d
import std.typetuple -> import std.meta
2015-05-05 22:22:10 +03:00
Martin Nowak
1e19a4f713
use typeid(T).init() to reset moved value
2015-04-20 00:53:04 +02:00
Jakob Ovrum
538c207180
Improve docs for std.algorithm.copy
2015-04-01 13:31:33 +09:00
JakobOvrum
9469e04844
Merge pull request #3072 from quickfur/swap_docs
...
Use swap() unittests as ddoc'd examples.
2015-03-21 19:53:33 +01:00
H. S. Teoh
192c0c92bc
Use swap() unittests as doc examples.
2015-03-18 19:00:43 -07:00
H. S. Teoh
f496b75156
Move non-ditto'd overload of swap() away from prospective ddoc unittests
2015-03-18 18:57:25 -07:00
Robert Schadek
566d431bea
Merge pull request #3063 from quickfur/move_docs
...
Add code examples for std.algorithm.mutation.move.
2015-03-19 01:01:54 +01:00
H. S. Teoh
5cbcf9bfb2
Turn moveAll and moveSome unittests into ddoc'd unittest examples.
2015-03-18 13:25:54 -07:00
H. S. Teoh
2eb871b418
Add code examples for std.algorithm.mutation.move.
2015-03-18 13:19:27 -07:00
Vladimir Panteleev
2c5294b64f
Merge pull request #2989 from andralex/posix.mak
...
Fix name of package documentation: std_xyz_package.html -> std_xyz.html
2015-02-17 00:04:13 +02:00
Andrei Alexandrescu
11b32b56e5
Fix links
2015-02-16 13:39:18 -08:00
sinkuu
b55c07c63a
Move internal stuff to std.algorithm.internal
2015-02-14 14:02:37 +09:00
k-hara
e7b3d834d7
detab and remove trailing whitespaces
2015-02-10 00:56:40 +09:00
Steven Schveighoffer
8ccd882556
Fix second move overload for issue 13990
2015-01-22 10:23:11 -05:00
H. S. Teoh
bc73d86f31
Merge branch 'master' into split_std_algo_merge
...
Conflicts:
std/algorithm.d
Manually apply diff from PR #2876 .
2015-01-20 14:33:13 -08:00
H. S. Teoh
398038a1d3
Move cheat sheet entries into respective submodules.
2015-01-20 10:43:50 -08:00
H. S. Teoh
c3d464d1aa
Add ddoc headers for submodules.
2015-01-20 10:27:42 -08:00
H. S. Teoh
5cae4f0cb5
Split mutation algorithms into own submodule.
...
Clean up inter-package imports.
2015-01-20 09:14:06 -08:00