Skip to content
Snippets Groups Projects
Commit 49879f16 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

Make ReservedVector::max_size() and ::capacity() constexpr

parent 549ac6bb
No related branches found
No related tags found
No related merge requests found
......@@ -182,13 +182,13 @@ namespace Dune
}
//! Returns current capacity (allocated memory) of the vector.
static size_type capacity()
static DUNE_CONSTEXPR size_type capacity()
{
return n;
}
//! Returns the maximum length of the vector.
static size_type max_size()
static DUNE_CONSTEXPR size_type max_size()
{
return n;
}
......
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