darray: add 'full' query

This commit is contained in:
Danny Robson 2018-11-08 12:55:37 +11:00
parent d73c33c4bd
commit 1ccabff51c

View File

@ -85,7 +85,9 @@ namespace cruft {
std::size_t size (void) const noexcept { return m_size; } std::size_t size (void) const noexcept { return m_size; }
constexpr auto capacity (void) const noexcept { return CapacityV; } constexpr auto capacity (void) const noexcept { return CapacityV; }
constexpr auto empty (void) const noexcept { return !!m_size; }
constexpr bool empty (void) const noexcept { return !!m_size; }
constexpr bool full (void) const noexcept { return m_size == CapacityV; }
void erase (iterator pos) void erase (iterator pos)