/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/root/ |
H A D | array.d | 807 pragma(inline, true) T[n] staticArray(T, size_t n)(auto ref T[n] array) in pragma() 815 enum a = [0, 1].staticArray; 859 enum a = [ 1, 2, 4, 3 ].staticArray; 864 enum b = [ 1.0, 2, 4, 3].staticArray; 891 enum a = [1, 2, 3, 4].staticArray; 894 enum expected = [3, 4].staticArray; 958 enum a = [1, 2, 3, 4].staticArray; 959 enum expected = [2, 4, 6, 8].staticArray; 1015 enum a = [1, 2, 3, 4].staticArray; 1077 enum a = [1, 2, 3].staticArray; [all …]
|
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/ |
H A D | array.d | 4795 auto a = input.staticArray!2; 4798 auto b = input.staticArray!(long[4]); 4837 auto staticArray = normalArray.staticArray!5; variable 4846 auto a = [1, 2].staticArray; 4851 2.iota.staticArray!2.checkStaticArray!int([0, 1]); 4852 2.iota.staticArray!(double[2]).checkStaticArray!double([0, 1]); 4853 2.iota.staticArray!(long[2]).checkStaticArray!long([0, 1]); 4860 2.iota.staticArray!1(copiedAmount); 4862 2.iota.staticArray!3(copiedAmount); 4867 auto staticArray(alias a)() [all …]
|
H A D | sumtype.d | 1053 import std.array : staticArray; 1059 static arr1 = staticArray([Field()]); 1060 static arr2 = staticArray([Field()]); 2244 import std.array : staticArray; 2248 static ints = staticArray([1, 2, 3]); 2249 static chars = staticArray(['a', 'b', 'c']);
|
H A D | meta.d | 1260 auto staticArray(T, size_t n)(Repeat!(n, T) elems) in staticArray() function 1266 auto a = staticArray!(long, 3)(3, 1, 4);
|
H A D | typecons.d | 3662 import std.array : staticArray; 3672 Nullable!(Probe[1]) test = [Probe()].staticArray;
|
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/algorithm/ |
H A D | comparison.d | 896 import std.array : staticArray; 908 auto result = cmp([F(1), F(2), F(3)].staticArray[], [F(1), F(2), F(3)].staticArray[]); 911 result = cmp([F(1), F(3), F(2)].staticArray[], [F(1), F(2), F(3)].staticArray[]); 913 result = cmp([F(1), F(2), F(3)].staticArray[], [F(1), F(2), F(3), F(4)].staticArray[]); 915 result = cmp([F(1), F(2), F(3)].staticArray[], [F(1), F(2)].staticArray[]);
|
H A D | iteration.d | 1159 int[5] staticArray = [1, 2, 3, 4, 5]; 1164 staticArray.each!((ref x) => x++); 1165 assert(staticArray == [2, 3, 4, 5, 6]); 1167 staticArray[].each!((ref x) => x++); 1168 assert(staticArray == [3, 4, 5, 6, 7]);
|
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/ |
H A D | meta.d | 1365 auto staticArray(T, size_t n)(Repeat!(n, T) elems) in staticArray() function 1371 auto a = staticArray!(long, 3)(3, 1, 4);
|
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/algorithm/ |
H A D | iteration.d | 1054 int[5] staticArray = [1, 2, 3, 4, 5]; 1059 staticArray.each!((ref x) => x++); 1060 assert(staticArray == [2, 3, 4, 5, 6]); 1062 staticArray[].each!((ref x) => x++); 1063 assert(staticArray == [3, 4, 5, 6, 7]);
|
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/ |
H A D | object.d | 3722 else if (auto staticArray = cast(TypeInfo_StaticArray) element) 3723 element = staticArray.value;
|