Skip to content

Commit

Permalink
Add pod_vector pop_back support
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Jan 10, 2025
1 parent ab20246 commit 2cc7e24
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions yasio/pod_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ class pod_vector {
}
void push_back(value_type&& val) { push_back(val); }
void push_back(const value_type& val) { emplace_back(val); }
void pop_back()
{
if (!empty())
_Eos(size() - 1);
}
template <typename... _Valty>
inline value_type& emplace_back(_Valty&&... val)
{
Expand Down

0 comments on commit 2cc7e24

Please sign in to comment.