mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
Remove obsolete TypeTuple references
Replace following names: std.typetuple -> std.meta TypeTuple -> AliasSeq ParameterTypeTuple -> Parameters FieldTypeTuple -> Fields std.traits requires more work than search/replace and is left unchanged.
This commit is contained in:
parent
8d9d606ef8
commit
d698887729
48 changed files with 643 additions and 645 deletions
|
@ -302,15 +302,15 @@ private struct _Cache(R, bool bidir)
|
|||
private
|
||||
{
|
||||
import std.algorithm.internal : algoFormat;
|
||||
import std.typetuple : TypeTuple;
|
||||
import std.meta : AliasSeq;
|
||||
|
||||
alias E = ElementType!R;
|
||||
alias UE = Unqual!E;
|
||||
|
||||
R source;
|
||||
|
||||
static if (bidir) alias CacheTypes = TypeTuple!(UE, UE);
|
||||
else alias CacheTypes = TypeTuple!UE;
|
||||
static if (bidir) alias CacheTypes = AliasSeq!(UE, UE);
|
||||
else alias CacheTypes = AliasSeq!UE;
|
||||
CacheTypes caches;
|
||||
|
||||
static assert(isAssignable!(UE, E) && is(UE : E),
|
||||
|
@ -446,14 +446,14 @@ template map(fun...) if (fun.length >= 1)
|
|||
{
|
||||
auto map(Range)(Range r) if (isInputRange!(Unqual!Range))
|
||||
{
|
||||
import std.typetuple : staticMap;
|
||||
import std.meta : staticMap;
|
||||
|
||||
alias AppliedReturnType(alias f) = typeof(f(r.front));
|
||||
|
||||
static if (fun.length > 1)
|
||||
{
|
||||
import std.functional : adjoin;
|
||||
import std.typetuple : staticIndexOf;
|
||||
import std.meta : staticIndexOf;
|
||||
|
||||
alias _funs = staticMap!(unaryFun, fun);
|
||||
alias _fun = adjoin!_funs;
|
||||
|
@ -815,8 +815,8 @@ See_Also: $(XREF range,tee)
|
|||
*/
|
||||
template each(alias pred = "a")
|
||||
{
|
||||
import std.typetuple : TypeTuple;
|
||||
alias BinaryArgs = TypeTuple!(pred, "i", "a");
|
||||
import std.meta : AliasSeq;
|
||||
alias BinaryArgs = AliasSeq!(pred, "i", "a");
|
||||
|
||||
enum isRangeUnaryIterable(R) =
|
||||
is(typeof(unaryFun!pred(R.init.front)));
|
||||
|
@ -2450,7 +2450,7 @@ See_Also:
|
|||
+/
|
||||
template reduce(fun...) if (fun.length >= 1)
|
||||
{
|
||||
import std.typetuple : staticMap;
|
||||
import std.meta : staticMap;
|
||||
|
||||
alias binfuns = staticMap!(binaryFun, fun);
|
||||
static if (fun.length > 1)
|
||||
|
@ -3780,8 +3780,8 @@ if (isSomeChar!C)
|
|||
@safe pure unittest
|
||||
{
|
||||
import std.algorithm.comparison : equal;
|
||||
import std.typetuple : TypeTuple;
|
||||
foreach(S; TypeTuple!(string, wstring, dstring))
|
||||
import std.meta : AliasSeq;
|
||||
foreach(S; AliasSeq!(string, wstring, dstring))
|
||||
{
|
||||
import std.conv : to;
|
||||
S a = " a bcd ef gh ";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue