Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Src/Base/AMReX_PODVector.H
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,15 @@ namespace amrex
(Allocator const&)(*this));
}

/** Set the same value to every element of the vector
*
* @param a_value the value to assign
*/
void assign (const T& a_value)
{
assign(m_size, a_value);
}

[[nodiscard]] allocator_type get_allocator () const noexcept { return *this; }

void push_back (const T& a_value)
Expand Down