Skip to content

Commit 0b8da5f

Browse files
committed
[libc++] s/std::size_t/size_t/g. NFCI.
1 parent ab3fcc5 commit 0b8da5f

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

libcxx/include/experimental/functional

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public: // TODO private:
154154

155155
public:
156156
_LIBCPP_INLINE_VISIBILITY
157-
_BMSkipTable(std::size_t __sz, _Value __default, _Hash __hf, _BinaryPredicate __pred)
157+
_BMSkipTable(size_t __sz, _Value __default, _Hash __hf, _BinaryPredicate __pred)
158158
: __default_value_(__default), __table(__sz, __hf, __pred) {}
159159

160160
_LIBCPP_INLINE_VISIBILITY
@@ -179,13 +179,13 @@ private:
179179
typedef _Value value_type;
180180
typedef _Key key_type;
181181

182-
typedef typename std::make_unsigned<key_type>::type unsigned_key_type;
183-
typedef std::array<value_type, _VSTD::numeric_limits<unsigned_key_type>::max()> skip_map;
182+
typedef typename make_unsigned<key_type>::type unsigned_key_type;
183+
typedef std::array<value_type, numeric_limits<unsigned_key_type>::max()> skip_map;
184184
skip_map __table;
185185

186186
public:
187187
_LIBCPP_INLINE_VISIBILITY
188-
_BMSkipTable(std::size_t /*__sz*/, _Value __default, _Hash /*__hf*/, _BinaryPredicate /*__pred*/)
188+
_BMSkipTable(size_t /*__sz*/, _Value __default, _Hash /*__hf*/, _BinaryPredicate /*__pred*/)
189189
{
190190
std::fill_n(__table.begin(), __table.size(), __default);
191191
}
@@ -299,11 +299,11 @@ public: // TODO private:
299299
template<typename _Iterator, typename _Container>
300300
void __compute_bm_prefix ( _Iterator __f, _Iterator __l, _BinaryPredicate __pred, _Container &__prefix )
301301
{
302-
const std::size_t __count = _VSTD::distance(__f, __l);
302+
const size_t __count = _VSTD::distance(__f, __l);
303303

304304
__prefix[0] = 0;
305-
std::size_t __k = 0;
306-
for ( std::size_t __i = 1; __i < __count; ++__i )
305+
size_t __k = 0;
306+
for ( size_t __i = 1; __i < __count; ++__i )
307307
{
308308
while ( __k > 0 && !__pred ( __f[__k], __f[__i] ))
309309
__k = __prefix [ __k - 1 ];
@@ -317,22 +317,22 @@ public: // TODO private:
317317
void __build_suffix_table(_RandomAccessIterator1 __f, _RandomAccessIterator1 __l,
318318
_BinaryPredicate __pred)
319319
{
320-
const std::size_t __count = _VSTD::distance(__f, __l);
320+
const size_t __count = _VSTD::distance(__f, __l);
321321
vector<difference_type> & __suffix = *__suffix_.get();
322322
if (__count > 0)
323323
{
324324
_VSTD::vector<value_type> __scratch(__count);
325325

326326
__compute_bm_prefix(__f, __l, __pred, __scratch);
327-
for ( std::size_t __i = 0; __i <= __count; __i++ )
327+
for ( size_t __i = 0; __i <= __count; __i++ )
328328
__suffix[__i] = __count - __scratch[__count-1];
329329

330330
typedef _VSTD::reverse_iterator<_RandomAccessIterator1> _RevIter;
331331
__compute_bm_prefix(_RevIter(__l), _RevIter(__f), __pred, __scratch);
332332

333-
for ( std::size_t __i = 0; __i < __count; __i++ )
333+
for ( size_t __i = 0; __i < __count; __i++ )
334334
{
335-
const std::size_t __j = __count - __scratch[__i];
335+
const size_t __j = __count - __scratch[__i];
336336
const difference_type __k = __i - __scratch[__i] + 1;
337337

338338
if (__suffix[__j] > __k)

libcxx/include/type_traits

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ namespace std
216216
using add_pointer_t = typename add_pointer<T>::type; // C++14
217217
218218
// other transformations:
219-
template <size_t Len, std::size_t Align=default-alignment>
219+
template <size_t Len, size_t Align=default-alignment>
220220
using aligned_storage_t = typename aligned_storage<Len,Align>::type; // C++14
221-
template <std::size_t Len, class... Types>
221+
template <size_t Len, class... Types>
222222
using aligned_union_t = typename aligned_union<Len,Types...>::type; // C++14
223223
template <class T>
224224
using remove_cvref_t = typename remove_cvref<T>::type; // C++20

0 commit comments

Comments
 (0)