template<typename T_, int Value>
class Tomographer::Tools::static_or_dynamic< T_, Value >
A type which stores a value possibly known at compile-time.
This is an implementation inspired by Eigen's mechanism of compile-time known matrix/vector sizes.
This class declares a private member property which stores a dynamic value given to the constructor, except if a value was already given as template parameter in which case we take for granted that this value will always be the one we want at runtime.
- Template Parameters
-
T | the type of the value to store. |
Value | the (integer) value to store at compile-time. If this value is Eigen::Dynamic, then the value will be stored at runtime. |
Definition at line 145 of file util.h.