1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

add sized_pit container

This commit is contained in:
bolero-MURAKAMI 2016-04-03 14:29:33 +09:00
parent d611090972
commit 0abea1678c
12 changed files with 577 additions and 28 deletions

View file

@ -114,13 +114,13 @@ namespace sprout {
}
// capacity:
SPROUT_CONSTEXPR size_type size() const SPROUT_NOEXCEPT {
return enumerable_size;
return max_size();
}
SPROUT_CONSTEXPR size_type max_size() const SPROUT_NOEXCEPT {
return size();
return enumerable_size;
}
SPROUT_CONSTEXPR bool empty() const SPROUT_NOEXCEPT {
return enumerable_size == 0;
return size() == 0;
}
// element access:
SPROUT_CXX14_CONSTEXPR reference operator[](size_type) {