|
@@ -1363,9 +1363,13 @@ private:
|
|
|
enum {__alignment = 16};
|
|
|
static _LIBCPP_INLINE_VISIBILITY
|
|
|
size_type __recommend(size_type __s) _NOEXCEPT
|
|
|
- {return (__s < __min_cap ? static_cast<size_type>(__min_cap) :
|
|
|
- __align_it<sizeof(value_type) < __alignment ?
|
|
|
- __alignment/sizeof(value_type) : 1 > (__s+1)) - 1;}
|
|
|
+ {
|
|
|
+ if (__s < __min_cap) return static_cast<size_type>(__min_cap) - 1;
|
|
|
+ size_type __guess = __align_it<sizeof(value_type) < __alignment ?
|
|
|
+ __alignment/sizeof(value_type) : 1 > (__s+1) - 1;
|
|
|
+ if (__guess == __min_cap) ++__guess;
|
|
|
+ return __guess;
|
|
|
+ }
|
|
|
|
|
|
inline
|
|
|
void __init(const value_type* __s, size_type __sz, size_type __reserve);
|