Update empty function docs

This commit is contained in:
mandreyel 2018-04-15 19:12:27 +02:00
parent 2659608761
commit c6039f7ab5
2 changed files with 6 additions and 6 deletions

View File

@ -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(); }

View File

@ -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(); }