Remove unsafe raw pointer accessors from coral::stack

This commit is contained in:
kayomn 2023-02-22 15:39:28 +00:00
parent d58c9e67c4
commit fb06ce217f
1 changed files with 0 additions and 28 deletions

View File

@ -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`.
*/ */