Files
cppdraft_translate/cppdraft/gslice/access.md
2025-10-25 03:02:53 +03:00

32 lines
855 B
Markdown

[gslice.access]
# 29 Numerics library [[numerics]](./#numerics)
## 29.6 Numeric arrays [[numarray]](numarray#gslice.access)
### 29.6.6 The gslice class [[class.gslice]](class.gslice#gslice.access)
#### 29.6.6.3 Access functions [gslice.access]
[🔗](#lib:start,gslice)
`size_t start() const;
valarray<size_t> size() const;
valarray<size_t> stride() const;
`
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/numerics.tex#L8741)
*Returns*: The representation of the
start, lengths, or strides specified for the gslice[.](#1.sentence-1)
[2](#2)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/numerics.tex#L8746)
*Complexity*: start() is constant time[.](#2.sentence-1)
size() and stride() are linear in the number of strides[.](#2.sentence-2)