#ifndef DISTRIBUTION_CONST_H #define DISTRIBUTION_CONST_H namespace Distribution { /** uniform distribution */ template class Const { const T val; public: /** ctor */ Const(const T val) : val(val) { } /** get a constant value */ T draw() { return val; } }; } #endif // DISTRIBUTION_CONST_H