C++14: const all the methods!

This commit is contained in:
Jared Boone
2017-01-05 17:06:44 -08:00
parent 01cd8c7776
commit 0ea2f9650e
4 changed files with 20 additions and 20 deletions

View File

@@ -43,15 +43,15 @@ public:
}
constexpr uint32_t base() {
constexpr uint32_t base() const {
return base_;
}
constexpr uint32_t end() {
constexpr uint32_t end() const {
return base_ + size_;
}
constexpr size_t size() {
constexpr size_t size() const {
return size_;
}