diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-03 23:53:14 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-03 23:53:14 +0100 |
commit | 54affafd86e2b7f387345c08e8c7285c775d75e5 (patch) | |
tree | 93f88e854b6bc3a69e4a411cf44a39de3cf1d861 /asl/containers/intrusive_list.hpp | |
parent | 8604c98df53486208cdc15424aae9d9b2fef2d8e (diff) |
Rename intrusive_list head & tail to front & backv0.1.0
Diffstat (limited to 'asl/containers/intrusive_list.hpp')
-rw-r--r-- | asl/containers/intrusive_list.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/asl/containers/intrusive_list.hpp b/asl/containers/intrusive_list.hpp index ce0c133..fc911ec 100644 --- a/asl/containers/intrusive_list.hpp +++ b/asl/containers/intrusive_list.hpp @@ -80,13 +80,13 @@ public: } } - constexpr auto head(this auto&& self) + constexpr auto front(this auto&& self) { using return_type = un_ref_t<copy_cref_t<decltype(self), T>>*; return return_type{ self.m_head }; } - constexpr auto tail(this auto&& self) + constexpr auto back(this auto&& self) { using return_type = un_ref_t<copy_cref_t<decltype(self), T>>*; return return_type{ self.m_head != nullptr ? self.m_head->m_prev : nullptr }; @@ -178,13 +178,13 @@ public: auto begin(this auto&& self) { using iterator_type = select_t<is_const<un_ref_t<decltype(self)>>, const_iterator, iterator>; - return iterator_type{ self.head(), self.is_empty() }; + return iterator_type{ self.front(), self.is_empty() }; } auto end(this auto&& self) { using iterator_type = select_t<is_const<un_ref_t<decltype(self)>>, const_iterator, iterator>; - return iterator_type{ self.head(), true }; + return iterator_type{ self.front(), true }; } }; |