mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Simplifying index operators.
This commit is contained in:
parent
baa92194ef
commit
b3dd1f5751
1 changed files with 1 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ struct Position {
|
|||
Position& operator-=(double);
|
||||
Position& operator*=(Position);
|
||||
Position& operator*=(double);
|
||||
|
||||
const double& operator[](int i) const {
|
||||
switch (i) {
|
||||
case 0: return x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue