Skip to content
Snippets Groups Projects
Commit 20b6d5d4 authored by Oliver Sander's avatar Oliver Sander
Browse files

add method top_and_pop_back() for them speed freaks

[[Imported from SVN: r6547]]
parent cf9be500
No related branches found
No related tags found
No related merge requests found
......@@ -89,6 +89,12 @@ namespace Dune
if (! empty()) sz--;
}
//! Erases the last element of the vector, and returns it
T top_and_pop_back()
{
return data[--sz];
}
//! Returns a iterator pointing to the beginning of the vector.
iterator begin(){
return iterator(*this, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment