diff options
Diffstat (limited to 'number.h')
-rw-r--r-- | number.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -11,6 +11,8 @@ public: number(const number &) = default; number(number &&) = default; + number &operator=(const number &) = default; + number(std::uint32_t); /** @@ -78,6 +80,18 @@ public: */ bool operator!=(const number &n) const; + /** + * \brief Add a number to this number. + * + * \param n Number to add to this number. + */ + number &operator+=(const number &n); + + /** + * \brief Increment this number. + */ + number &operator++(); + private: /* First item is the least significant. */ std::list<std::uint32_t> _operands; |