diff options
Diffstat (limited to 'number.h')
-rw-r--r-- | number.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -49,6 +49,14 @@ public: number operator*(const number &) const; /** + * \brief Return a number equals to this number where n bits have been + * shifted to the left. + * + * \param n Number of bits to shift. + */ + number operator<<(std::uint32_t n) const; + + /** * \brief Tells whether the number passed as parameter is strictly less * than this number. * @@ -104,6 +112,13 @@ public: number &operator+=(const number &n); /** + * \brief Shift the number n bits to the left. + * + * \param n Number of bits to shift. + */ + number &operator<<=(std::uint32_t); + + /** * \brief Increment this number. */ number &operator++(); |