template<typename T, typename A>
inline void
vec_safe_grow (vec<T, A, vl_embed> *&v, unsigned len,
- bool exact CXX_MEM_STAT_INFO)
+ bool exact = false CXX_MEM_STAT_INFO)
{
unsigned oldlen = vec_safe_length (v);
gcc_checking_assert (len >= oldlen);
template<typename T, typename A>
inline void
vec_safe_grow_cleared (vec<T, A, vl_embed> *&v, unsigned len,
- bool exact CXX_MEM_STAT_INFO)
+ bool exact = false CXX_MEM_STAT_INFO)
{
unsigned oldlen = vec_safe_length (v);
vec_safe_grow (v, len, exact PASS_MEM_STAT);
template<typename T>
inline void
vec_safe_grow_cleared (vec<T, va_heap, vl_ptr> *&v,
- unsigned len, bool exact CXX_MEM_STAT_INFO)
+ unsigned len, bool exact = false CXX_MEM_STAT_INFO)
{
v->safe_grow_cleared (len, exact PASS_MEM_STAT);
}
T *safe_push (const T &CXX_MEM_STAT_INFO);
T &pop (void);
void truncate (unsigned);
- void safe_grow (unsigned, bool CXX_MEM_STAT_INFO);
- void safe_grow_cleared (unsigned, bool CXX_MEM_STAT_INFO);
+ void safe_grow (unsigned, bool = false CXX_MEM_STAT_INFO);
+ void safe_grow_cleared (unsigned, bool = false CXX_MEM_STAT_INFO);
void quick_grow (unsigned);
void quick_grow_cleared (unsigned);
void quick_insert (unsigned, const T &);