MCPcopy Create free account
hub / github.com/davisking/dlib / max_size

Method max_size

dlib/std_allocator.h:79–83  ·  view source on GitHub ↗

return maximum number of elements that can be allocated

Source from the content-addressed store, hash-verified

77
78 //return maximum number of elements that can be allocated
79 size_type max_size () const noexcept
80 {
81 //for numeric_limits see Section 4.3, page 59
82 return std::numeric_limits<size_t>::max() / sizeof(T);
83 }
84
85 //allocate but don't initialize num elements of type T
86 pointer allocate (

Callers

nothing calls this directly

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected