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:
Dragos Carp 2015-10-13 20:30:32 +02:00
parent 8d9d606ef8
commit d698887729
48 changed files with 643 additions and 645 deletions

View file

@ -76,11 +76,11 @@ private
import core.sync.condition;
import std.algorithm;
import std.exception;
import std.meta;
import std.range;
import std.string;
import std.traits;
import std.typecons;
import std.typetuple;
import std.concurrencybase;
template hasLocalAliasing(T...)
@ -150,7 +150,7 @@ private
auto map(Op)( Op op )
{
alias Args = ParameterTypeTuple!(Op);
alias Args = Parameters!(Op);
static if( Args.length == 1 )
{
@ -171,7 +171,7 @@ private
foreach( i, t1; T )
{
static assert( isFunctionPointer!t1 || isDelegate!t1 );
alias a1 = ParameterTypeTuple!(t1);
alias a1 = Parameters!(t1);
alias r1 = ReturnType!(t1);
static if( i < T.length - 1 && is( r1 == void ) )
@ -183,7 +183,7 @@ private
foreach( t2; T[i+1 .. $] )
{
static assert( isFunctionPointer!t2 || isDelegate!t2 );
alias a2 = ParameterTypeTuple!(t2);
alias a2 = Parameters!(t2);
static assert( !is( a1 == a2 ),
"function with arguments " ~ a1.stringof ~
@ -397,8 +397,8 @@ private template isSpawnable(F, T...)
{
template isParamsImplicitlyConvertible(F1, F2, int i=0)
{
alias param1 = ParameterTypeTuple!F1;
alias param2 = ParameterTypeTuple!F2;
alias param1 = Parameters!F1;
alias param2 = Parameters!F2;
static if (param1.length != param2.length)
enum isParamsImplicitlyConvertible = false;
else static if (param1.length == i)
@ -1905,7 +1905,7 @@ private
static if( isImplicitlyConvertible!(T[0], Duration) )
{
alias Ops = TypeTuple!(T[1 .. $]);
alias Ops = AliasSeq!(T[1 .. $]);
alias ops = vals[1 .. $];
assert( vals[0] >= msecs(0) );
enum timedWait = true;
@ -1913,7 +1913,7 @@ private
}
else
{
alias Ops = TypeTuple!(T);
alias Ops = AliasSeq!(T);
alias ops = vals[0 .. $];
enum timedWait = false;
}
@ -1922,7 +1922,7 @@ private
{
foreach( i, t; Ops )
{
alias Args = ParameterTypeTuple!(t);
alias Args = Parameters!(t);
auto op = ops[i];
if( msg.convertsTo!(Args) )