Lines Matching refs:T

30 template<typename T>
36 T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
41 const T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) const {
46 StrideIterator<T> begin(size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
47 return StrideIterator<T>(&AtUnchecked(0, element_size, alignment), element_size);
50 StrideIterator<const T> begin(size_t element_size = sizeof(T),
51 size_t alignment = alignof(T)) const {
52 return StrideIterator<const T>(&AtUnchecked(0, element_size, alignment), element_size);
55 StrideIterator<T> end(size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
56 return StrideIterator<T>(&AtUnchecked(size_, element_size, alignment), element_size);
59 StrideIterator<const T> end(size_t element_size = sizeof(T),
60 size_t alignment = alignof(T)) const {
61 return StrideIterator<const T>(&AtUnchecked(size_, element_size, alignment), element_size);
65 size_t element_size = sizeof(T),
66 size_t alignment = alignof(T)) {
68 return RoundUp(offsetof(LengthPrefixedArray<T>, data_), alignment) + index * element_size;
72 size_t element_size = sizeof(T),
73 size_t alignment = alignof(T)) {
89 void ClearPadding(size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
90 size_t gap_offset = offsetof(LengthPrefixedArray<T>, data_);
96 T& AtUnchecked(size_t index, size_t element_size, size_t alignment) { in AtUnchecked()
97 return *reinterpret_cast<T*>( in AtUnchecked()
101 const T& AtUnchecked(size_t index, size_t element_size, size_t alignment) const { in AtUnchecked()
102 return *reinterpret_cast<T*>( in AtUnchecked()
111 template<typename T>
112 IterationRange<StrideIterator<T>> MakeIterationRangeFromLengthPrefixedArray(
113 LengthPrefixedArray<T>* arr, size_t element_size = sizeof(T), size_t alignment = alignof(T)) {
116 MakeEmptyIterationRange(StrideIterator<T>(nullptr, 0));