libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ _S_check_init_len()

template<typename _Tp, typename _Alloc = std::allocator<_Tp>>
size_t std::deque< _Tp, _Alloc >::_S_check_init_len ( size_t __n,
const allocator_type & __a )
inlinestaticprotected

Definition at line 1966 of file stl_deque.h.

1967 {
1968 if (__n > _S_max_size(__a))
1970 __N("cannot create std::deque larger than max_size()"));
1971 return __n;
1972 }
#define __N(msgid)
void __throw_length_error(const char *)
static size_type _S_max_size(const _Tp_alloc_type &__a) noexcept
Definition stl_deque.h:1975
A standard container using fixed-size memory allocation and constant-time manipulation of elements at...
Definition stl_deque.h:792

Referenced by _M_range_initialize().

Here is the caller graph for this function: