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

Method push_back

system/lib/libcxx/include/__vector/vector_bool.h:889–894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

887
888template <class _Allocator>
889_LIBCPP_CONSTEXPR_SINCE_CXX20 void vector<bool, _Allocator>::push_back(const value_type& __x) {
890 if (this->__size_ == this->capacity())
891 reserve(__recommend(this->__size_ + 1));
892 ++this->__size_;
893 back() = __x;
894}
895
896template <class _Allocator>
897_LIBCPP_CONSTEXPR_SINCE_CXX20 typename vector<bool, _Allocator>::iterator

Callers

nothing calls this directly

Calls 3

capacityMethod · 0.80
backFunction · 0.70
reserveFunction · 0.50

Tested by

no test coverage detected