Searched refs:slice (Results 1 - 25 of 56) sorted by relevance

123

/haiku-buildtools/legacy/gcc/libstdc++/std/
H A Dslice.h1 // The template and inlines for the -*- C++ -*- slice class.
37 class slice class
40 slice ();
41 slice (size_t, size_t, size_t);
53 inline slice::slice () {} function in class:slice
55 inline slice::slice (size_t __o, size_t __d, size_t __s) function in class:slice
59 slice::start () const
63 slice
[all...]
/haiku-buildtools/gcc/gcc/testsuite/go.test/test/
H A Dslice3err.go10 var slice []int var
20 _ = array[::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice"
21 _ = array[i::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice"
22 _ = array[:j:] // ERROR "final index required in 3-index slice"
23 _ = array[i:j:] // ERROR "final index required in 3-index slice"
24 _ = array[::k] // ERROR "middle index required in 3-index slice"
25 _ = array[i::k] // ERROR "middle index required in 3-index slice"
29 _ = slice[
[all...]
H A Dcomplit1.go21 _ = [3]int{1, 2, 3}[:] // ERROR "slice of unaddressable value"
22 _ = m[0][:] // ERROR "slice of unaddressable value"
23 _ = f()[:] // ERROR "slice of unaddressable value"
H A Dnamed.go55 slice Slice = make(Slice, 10)
237 asSlice(slice)
238 isSlice(slice)
243 asSlice(slice[0:4])
244 isSlice(slice[0:4])
245 asSlice(slice[3:8])
246 isSlice(slice[3:8])
250 slice = nil
255 asSlice(*&slice)
256 isSlice(*&slice)
[all...]
H A Dindex0.go7 // Generate test of index and slice bounds checks.
H A Dindex1.go7 // Generate test of index and slice bounds checks.
H A Dindex2.go7 // Generate test of index and slice bounds checks.
H A Drecover2.go44 defer mustRecover("slice")
49 defer mustRecover("slice")
H A Dnamed1.go21 var slice Slice var
61 asString(String(slice)) // ok
H A Dslice3.go7 // Test run-time behavior of 3-index slice expressions.
55 const Cap = 10 // cap of slice, array
57 for _, base := range []string{"array", "slice"} {
109 slice = array[:]
/haiku-buildtools/gcc/libstdc++-v3/testsuite/26_numerics/headers/valarray/
H A Dtypes_std.cc24 typedef std::slice t1;
/haiku-buildtools/gcc/libstdc++-v3/testsuite/26_numerics/slice_array/
H A Darray_assignment.cc28 using std::slice;
31 w[slice(0, 3, 3)] = v[slice(2, 3, 3)];
37 std::slice_array<int> t __attribute__((unused)) = v[slice(0, 10, 1)];
/haiku-buildtools/gcc/gcc/testsuite/go.test/test/fixedbugs/
H A Dissue4251.go7 // Issue 4251: slice with inverted range is an error.
12 return s[2:1] // ERROR "invalid slice index|inverted slice range"
16 return a[2:1] // ERROR "invalid slice index|inverted slice range"
20 return s[2:1] // ERROR "invalid slice index|inverted slice range"
H A Dissue4232.go12 _ = a[-1:] // ERROR "invalid slice index -1|index out of bounds"
13 _ = a[:-1] // ERROR "invalid slice index -1|index out of bounds"
17 _ = s[-1] // ERROR "invalid slice index -1|index out of bounds"
18 _ = s[-1:] // ERROR "invalid slice index -1|index out of bounds"
19 _ = s[:-1] // ERROR "invalid slice index -1|index out of bounds"
24 _ = c[-1:] // ERROR "invalid slice index -1|index out of bounds"
25 _ = c[:-1] // ERROR "invalid slice index -1|index out of bounds"
30 _ = t[-1:] // ERROR "invalid slice index -1|index out of bounds"
31 _ = t[:-1] // ERROR "invalid slice index -1|index out of bounds"
H A Dbug457.go7 // Issue 4197: growing a slice of zero-width elements
H A Dbug481.go7 // Returning an index into a conversion from string to slice caused a
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp0x/
H A Dvariadic164.C5 template <typename...> void slice();
6 template <int Index, typename...> using slice_result = decltype(slice<Index>);
/haiku-buildtools/gcc/libstdc++-v3/testsuite/26_numerics/slice/
H A D1.cc20 // Test slice class invariants
29 std::slice s(start, size, stride);
36 std::slice s(start, size, stride);
37 std::slice t = s;
44 std::slice s(start, size, stride);
45 std::slice t;
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/
H A Dpr35065.c128 slice_t slice; member in struct:decoder_sys_t
172 slice_t slice; local
178 slice.i_delta_pic_order_cnt0 = bs_read_se( &s );
180 if( slice.i_frame_num != p_sys->slice.i_frame_num
181 || slice.i_nal_ref_idc != p_sys->slice.i_nal_ref_idc )
182 if( (slice.i_bottom_field_flag != -1)
183 && (slice.i_bottom_field_flag != p_sys->slice
[all...]
/haiku-buildtools/gcc/libstdc++-v3/testsuite/26_numerics/valarray/
H A D40691.cc28 std::slice s(0,3,4);
H A Ddr543.cc21 // DR 543. valarray slice default constructor
27 std::valarray<int> v2 = v1[std::slice()];
/haiku-buildtools/gcc/gcc/testsuite/go.test/test/fixedbugs/issue4879.dir/
H A Da.go13 type slice []int type
25 root: unsafe.Pointer(&slice{}),
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/torture/
H A Dpr61346.c9 struct slice struct
30 struct decode_rune_ret decode_rune (struct slice) __attribute__ ((noinline));
32 decode_rune (struct slice s)
50 struct slice token;
53 struct ret scanwords (struct slice, _Bool) __attribute__ ((noinline));
56 scanwords (struct slice data, _Bool ateof)
59 struct slice token;
66 struct slice s;
108 struct slice s;
149 struct slice
[all...]
/haiku-buildtools/gcc/libstdc++-v3/include/bits/
H A Dslice_array.h49 * The slice class represents a one-dimensional subset of an array,
56 * For example, with an array of size 10, and a slice with offset 1, size 3
59 class slice class
62 /// Construct an empty slice.
63 slice();
66 * @brief Construct a slice.
69 * @param __d Number of elements in slice.
72 slice(size_t __o, size_t __d, size_t __s);
74 /// Return array offset of first slice element.
76 /// Return size of slice
90 slice::slice() function in class:slice
94 slice::slice(size_t __o, size_t __d, size_t __s) function in class:slice
[all...]
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/torture/
H A Dpr49039.C31 S slice (size_t Start, size_t End) const function in struct:S
42 return make_pair (slice (0, Idx), slice (Idx + 1, ~size_t (0)));

Completed in 161 milliseconds

123