Remove unsafe raw pointer accessors from coral::stack
This commit is contained in:
parent
d58c9e67c4
commit
fb06ce217f
|
@ -88,34 +88,6 @@ export namespace coral {
|
||||||
return append_result::ok;
|
return append_result::ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the beginning of the elements as a mutable pointer.
|
|
||||||
*/
|
|
||||||
element * begin() {
|
|
||||||
return this->elements.pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the beginning of the elements as a const pointer.
|
|
||||||
*/
|
|
||||||
element const * begin() const {
|
|
||||||
return this->elements.pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the ending of the elements as a mutable pointer.
|
|
||||||
*/
|
|
||||||
element * end() {
|
|
||||||
return this->elements.pointer + this->filled;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the ending of the elements as a const pointer.
|
|
||||||
*/
|
|
||||||
element const * end() const {
|
|
||||||
return this->elements.pointer + this->filled;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns `true` if the stack is backed by dynamic memory, otherwise `false`.
|
* Returns `true` if the stack is backed by dynamic memory, otherwise `false`.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue