Skip to content

Commit

Permalink
Container const inout methods
Browse files Browse the repository at this point in the history
  • Loading branch information
zorael committed Jan 4, 2024
1 parent 836c7d3 commit 460235f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/lu/container.d
Expand Up @@ -288,7 +288,7 @@ pure nothrow:
Returns:
The buffer's current length.
+/
auto length() inout
auto length() const inout
{
return (end - pos);
}
Expand All @@ -304,7 +304,7 @@ pure nothrow:
`true` if there are items available to get via `front`,
`false` if not.
+/
auto empty() inout
auto empty() const inout
{
return (end == 0);
}
Expand Down Expand Up @@ -602,7 +602,7 @@ public:
Returns:
Internal buffer size.
+/
auto size() inout
auto size() const inout
{
return buf.length;
}
Expand All @@ -618,7 +618,7 @@ public:
`true` if there are items available to get via `front`,
`false` if not.
+/
auto empty() inout
auto empty() const inout
{
return !caughtUp && (head == tail);
}
Expand Down Expand Up @@ -997,7 +997,7 @@ public:
Returns:
The length of the internal associative array.
+/
auto length() inout
auto length() const inout
{
return aa.length;
}
Expand Down

0 comments on commit 460235f

Please sign in to comment.