A class which an index operator that always returns a constant value. More...
#include <constant_coefficient.hpp>
Public Member Functions | |
| constexpr | ConstantCoefficient (double c) |
| Stores the constant value that will be returned by the index operator. | |
| double | operator[] (std::size_t) const |
| Index operator that always returns the same constant value. | |
A class which an index operator that always returns a constant value.
Definition at line 11 of file constant_coefficient.hpp.
|
inlineexplicitconstexpr |
Stores the constant value that will be returned by the index operator.
| c | Constant value to return. |
Definition at line 21 of file constant_coefficient.hpp.
|
inline |
Index operator that always returns the same constant value.
Definition at line 30 of file constant_coefficient.hpp.