mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
more constexpr
This commit is contained in:
parent
e09a38d804
commit
d976e27b33
@ -146,11 +146,11 @@ namespace ngcore
|
||||
{ return i[j]; }
|
||||
|
||||
/// access
|
||||
NETGEN_INLINE const T & operator[] (int j) const
|
||||
NETGEN_INLINE constexpr const T & operator[] (int j) const
|
||||
{ return i[j]; }
|
||||
|
||||
template <size_t J>
|
||||
T get() const { return i[J]; }
|
||||
constexpr T get() const { return i[J]; }
|
||||
|
||||
operator FlatArray<T> () { return FlatArray<T> (N, &i[0]); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user