posix/map: add missing empty method
This commit is contained in:
parent
b949b90dd7
commit
08249f530e
@ -105,6 +105,14 @@ map::data (void) const
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
bool
|
||||
map::empty (void) const
|
||||
{
|
||||
return size () == 0;
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
size_t
|
||||
map::size (void) const
|
||||
{
|
||||
|
@ -38,8 +38,8 @@ namespace util::posix {
|
||||
|
||||
uint8_t* begin (void);
|
||||
uint8_t* end (void);
|
||||
const uint8_t* begin (void) const;
|
||||
const uint8_t* end (void) const;
|
||||
const uint8_t* begin (void) const;
|
||||
const uint8_t* end (void) const;
|
||||
const uint8_t* cbegin (void) const;
|
||||
const uint8_t* cend (void) const;
|
||||
|
||||
@ -48,6 +48,7 @@ namespace util::posix {
|
||||
|
||||
void sync (void *addr, size_t len, int flags);
|
||||
|
||||
bool empty (void) const;
|
||||
size_t size (void) const;
|
||||
|
||||
enum class resize_t { MOVE, NOMOVE };
|
||||
|
Loading…
Reference in New Issue
Block a user