ikod-containers ~master (2021-10-26T12:19:13Z)
Dub
Repo
Ring
ikod
containers
ring
Undocumented in source.
struct
Ring (
T
alias
N
Allocator
=
Mallocator
bool
GCRangesAllowed
= true
) {
static if
(
popcnt(N) == 1
)
enum
_useMask
;
static if
(
popcnt(N) == 1
)
enum
_mask
;
static if
(!(
popcnt(N) == 1
))
enum
_useMask
;
enum
OverflowPolicy
;
enum
PutStatus
;
enum
GetStatus
;
void
init
(OverflowPolicy p);
~this
();
auto
put
(T item);
auto
get
();
auto
length
();
auto
empty
();
auto
full
();
}
Destructor
~this
~this
()
Undocumented in source.
Members
Enums
GetStatus
enum
GetStatus
Undocumented in source.
OverflowPolicy
enum
OverflowPolicy
Undocumented in source.
PutStatus
enum
PutStatus
Undocumented in source.
Functions
empty
auto
empty
()
Undocumented in source. Be warned that the author may not have intended to support it.
full
auto
full
()
Undocumented in source. Be warned that the author may not have intended to support it.
get
auto
get
()
Undocumented in source. Be warned that the author may not have intended to support it.
init
void
init
(OverflowPolicy p)
Undocumented in source. Be warned that the author may not have intended to support it.
length
auto
length
()
Undocumented in source. Be warned that the author may not have intended to support it.
put
auto
put
(T item)
Undocumented in source. Be warned that the author may not have intended to support it.
Manifest constants
_mask
enum
_mask
;
Undocumented in source.
_useMask
enum
_useMask
;
Undocumented in source.
_useMask
enum
_useMask
;
Undocumented in source.
Meta
Source
See Implementation
ikod
containers
ring
structs
Ring