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