Skip to content
Snippets Groups Projects
Commit 8d53f4c9 authored by Carsten Gräser's avatar Carsten Gräser Committed by Steffen Müthing
Browse files

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


(cherry picked from commit 49879f16)
Signed-off-by: default avatarSteffen Müthing <muething@dune-project.org>
parent e2afbbf1
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