MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / pop_back

Method pop_back

TombEngine/Specific/fast_vector.h:449–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447
448template <class T>
449void fast_vector<T>::pop_back()
450{
451 assert(m_size > 0 && "Container is empty");
452
453 if constexpr (!std::is_trivial_v<T>)
454 {
455 m_data[m_size - 1].~T();
456 }
457
458 m_size--;
459}
460
461template <class T>
462void fast_vector<T>::resize(size_type count)

Callers 4

GetVisibleRoomsMethod · 0.80
GetVariablesMethod · 0.80
emplace_argFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected