diff options
author | FormerLurker <hochgebe@gmail.com> | 2020-12-14 00:01:48 +0300 |
---|---|---|
committer | FormerLurker <hochgebe@gmail.com> | 2020-12-14 00:01:48 +0300 |
commit | ec309e86a5f64bbce182cbb32379e4c35ec18e3c (patch) | |
tree | 0f7641af347875a4f8eebcfe678c78bda211676f /GcodeProcessorLib/array_list.h | |
parent | 893b8eea5e182457e90db9ddbaac8a7fb435a0c7 (diff) |
Resolves #22, #23, #24, #25 and #26.
Diffstat (limited to 'GcodeProcessorLib/array_list.h')
-rw-r--r-- | GcodeProcessorLib/array_list.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/GcodeProcessorLib/array_list.h b/GcodeProcessorLib/array_list.h index 6e48f96..4303fe1 100644 --- a/GcodeProcessorLib/array_list.h +++ b/GcodeProcessorLib/array_list.h @@ -95,7 +95,7 @@ public: count_++; } - T pop_front() + T& pop_front() { if (count_ == 0) { @@ -108,7 +108,7 @@ public: return items_[prev_start]; } - T pop_back() + T& pop_back() { if (count_ == 0) { @@ -123,7 +123,7 @@ public: return items_[(front_index_ + index + max_size_) % max_size_]; } - T get(int index) const + T& get(int index) const { return items_[(front_index_ + index + max_size_) % max_size_]; } |