mirror of
https://github.com/vimpunk/mio.git
synced 2025-12-08 01:36:52 +08:00
Update empty function docs
This commit is contained in:
parent
2659608761
commit
c6039f7ab5
@ -115,9 +115,9 @@ public:
|
||||
bool is_open() const noexcept { return impl_.is_open(); }
|
||||
|
||||
/**
|
||||
* Returns if the length that was mapped was 0, in which case no mapping was
|
||||
* established, i.e. `is_open` returns false. This function is provided so that
|
||||
* this class has some Container semantics.
|
||||
* Returns true if no mapping was established, that is, conceptually the
|
||||
* same as though the length that was mapped was 0. This function is
|
||||
* provided so that this class has Container semantics.
|
||||
*/
|
||||
bool empty() const noexcept { return impl_.empty(); }
|
||||
|
||||
|
||||
@ -128,9 +128,9 @@ public:
|
||||
bool is_open() const noexcept { return pimpl_ && pimpl_->is_open(); }
|
||||
|
||||
/**
|
||||
* Returns if the length that was mapped was 0, in which case no mapping was
|
||||
* established, i.e. `is_open` returns false. This function is provided so that
|
||||
* this class has some Container semantics.
|
||||
* Returns true if no mapping was established, that is, conceptually the
|
||||
* same as though the length that was mapped was 0. This function is
|
||||
* provided so that this class has Container semantics.
|
||||
*/
|
||||
bool empty() const noexcept { return !pimpl_ || pimpl_->empty(); }
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user