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

Function vector

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

Source from the content-addressed store, hash-verified

145 }
146
147 _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI explicit vector(size_type __n) {
148 auto __guard = std::__make_exception_guard(__destroy_vector(*this));
149 if (__n > 0) {
150 __vallocate(__n);
151 __construct_at_end(__n);
152 }
153 __guard.__complete();
154 }
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)

Callers

nothing calls this directly

Calls 3

__completeMethod · 0.80
__destroy_vectorClass · 0.70
__vallocateFunction · 0.70

Tested by

no test coverage detected