MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __alloc_

Function __alloc_

system/lib/libcxx/include/__vector/vector.h:157–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155
156#if _LIBCPP_STD_VER >= 14
157 _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI explicit vector(size_type __n, const allocator_type& __a)
158 : __alloc_(__a) {
159 auto __guard = std::__make_exception_guard(__destroy_vector(*this));
160 if (__n > 0) {
161 __vallocate(__n);
162 __construct_at_end(__n);
163 }
164 __guard.__complete();
165 }
166#endif
167
168 _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI vector(size_type __n, const value_type& __x) {

Callers 1

allocation_guard.hFile · 0.85

Calls 10

__completeMethod · 0.80
__destroy_vectorClass · 0.70
__vallocateFunction · 0.70
__init_with_sentinelFunction · 0.70
__init_with_sizeFunction · 0.70
sizeMethod · 0.65
beginFunction · 0.50
endFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected