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

@ -2166,8 +2166,8 @@ private ulong swapEndianImpl(ulong val) @trusted pure nothrow @nogc
unittest
{
import std.typetuple;
foreach(T; TypeTuple!(bool, byte, ubyte, short, ushort, int, uint, long, ulong, char, wchar, dchar))
import std.meta;
foreach(T; AliasSeq!(bool, byte, ubyte, short, ushort, int, uint, long, ulong, char, wchar, dchar))
{
scope(failure) writefln("Failed type: %s", T.stringof);
T val;
@ -2282,9 +2282,9 @@ private auto nativeToBigEndianImpl(T)(T val) @safe pure nothrow @nogc
unittest
{
import std.typetuple;
foreach(T; TypeTuple!(bool, byte, ubyte, short, ushort, int, uint, long, ulong,
char, wchar, dchar
import std.meta;
foreach(T; AliasSeq!(bool, byte, ubyte, short, ushort, int, uint, long, ulong,
char, wchar, dchar
/* The trouble here is with floats and doubles being compared against nan
* using a bit compare. There are two kinds of nans, quiet and signaling.
* When a nan passes through the x87, it converts signaling to quiet.
@ -2456,10 +2456,10 @@ private auto nativeToLittleEndianImpl(T)(T val) @safe pure nothrow @nogc
unittest
{
import std.typetuple;
foreach(T; TypeTuple!(bool, byte, ubyte, short, ushort, int, uint, long, ulong,
char, wchar, dchar/*,
float, double*/))
import std.meta;
foreach(T; AliasSeq!(bool, byte, ubyte, short, ushort, int, uint, long, ulong,
char, wchar, dchar/*,
float, double*/))
{
scope(failure) writefln("Failed type: %s", T.stringof);
T val;
@ -2586,8 +2586,8 @@ private template isFloatOrDouble(T)
unittest
{
import std.typetuple;
foreach(T; TypeTuple!(float, double))
import std.meta;
foreach(T; AliasSeq!(float, double))
{
static assert(isFloatOrDouble!(T));
static assert(isFloatOrDouble!(const T));
@ -2615,9 +2615,9 @@ private template canSwapEndianness(T)
unittest
{
import std.typetuple;
foreach(T; TypeTuple!(bool, ubyte, byte, ushort, short, uint, int, ulong,
long, char, wchar, dchar, float, double))
import std.meta;
foreach(T; AliasSeq!(bool, ubyte, byte, ushort, short, uint, int, ulong,
long, char, wchar, dchar, float, double))
{
static assert(canSwapEndianness!(T));
static assert(canSwapEndianness!(const T));
@ -2628,7 +2628,7 @@ unittest
}
//!
foreach(T; TypeTuple!(real, string, wstring, dstring))
foreach(T; AliasSeq!(real, string, wstring, dstring))
{
static assert(!canSwapEndianness!(T));
static assert(!canSwapEndianness!(const T));
@ -3706,11 +3706,11 @@ unittest
{
import std.format : format;
import std.array;
import std.typetuple;
foreach(endianness; TypeTuple!(Endian.bigEndian, Endian.littleEndian))
import std.meta;
foreach(endianness; AliasSeq!(Endian.bigEndian, Endian.littleEndian))
{
auto toWrite = appender!(ubyte[])();
alias Types = TypeTuple!(uint, int, long, ulong, short, ubyte, ushort, byte, uint);
alias Types = AliasSeq!(uint, int, long, ulong, short, ubyte, ushort, byte, uint);
ulong[] values = [42, -11, long.max, 1098911981329L, 16, 255, 19012, 2, 17];
assert(Types.length == values.length);
@ -3781,8 +3781,8 @@ unittest
unittest
{
import std.typetuple;
foreach (T; TypeTuple!(byte, ubyte, short, ushort, int, uint, long, ulong))
import std.meta;
foreach (T; AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong))
{
assert(countTrailingZeros(cast(T)0) == 8 * T.sizeof);
assert(countTrailingZeros(cast(T)1) == 0);
@ -3862,8 +3862,8 @@ unittest
unittest
{
import std.typetuple;
foreach (T; TypeTuple!(byte, ubyte, short, ushort, int, uint, long, ulong))
import std.meta;
foreach (T; AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong))
{
assert(countBitsSet(cast(T)0) == 0);
assert(countBitsSet(cast(T)1) == 1);
@ -3963,8 +3963,8 @@ unittest
import std.algorithm : equal;
import std.range: iota;
import std.typetuple;
foreach (T; TypeTuple!(byte, ubyte, short, ushort, int, uint, long, ulong))
import std.meta;
foreach (T; AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong))
{
assert(bitsSet(cast(T)0).empty);
assert(bitsSet(cast(T)1).equal([0]));