diff --git a/doc/website/release-notes/iceoryx-unreleased.md b/doc/website/release-notes/iceoryx-unreleased.md index 88f05ce8bd..332c26e31f 100644 --- a/doc/website/release-notes/iceoryx-unreleased.md +++ b/doc/website/release-notes/iceoryx-unreleased.md @@ -124,6 +124,7 @@ - Race condition in `PoshRuntime` during shutdown [#2192](https://github.com/eclipse-iceoryx/iceoryx/issues/2192) - Fix wrong memory orders in SpscFiFo [#2167](https://github.com/eclipse-iceoryx/iceoryx/issues/2167) - Implement missing copy assignment for expected [#2216](https://github.com/eclipse-iceoryx/iceoryx/issues/2216) +- Add missing type aliases that conform with STL container types [#2220](https://github.com/eclipse-iceoryx/iceoryx/issues/2220) **Refactoring:** diff --git a/iceoryx_hoofs/container/include/iox/forward_list.hpp b/iceoryx_hoofs/container/include/iox/forward_list.hpp index 9492d32430..80453b7f15 100644 --- a/iceoryx_hoofs/container/include/iox/forward_list.hpp +++ b/iceoryx_hoofs/container/include/iox/forward_list.hpp @@ -21,6 +21,7 @@ #include "iox/assertions.hpp" #include "iox/uninitialized_array.hpp" +#include #include #include @@ -65,7 +66,11 @@ class forward_list using iterator = IteratorBase; using const_iterator = IteratorBase; using value_type = T; + using reference = T&; + using const_reference = const T&; + using difference_type = std::ptrdiff_t; using size_type = decltype(Capacity); + using index_type = size_type; /// @brief constructor for an empty list (of T-types elements) forward_list() noexcept; diff --git a/iceoryx_hoofs/container/include/iox/list.hpp b/iceoryx_hoofs/container/include/iox/list.hpp index 0742458725..29eec68abe 100644 --- a/iceoryx_hoofs/container/include/iox/list.hpp +++ b/iceoryx_hoofs/container/include/iox/list.hpp @@ -21,6 +21,7 @@ #include "iox/assertions.hpp" #include "iox/uninitialized_array.hpp" +#include #include #include @@ -66,7 +67,11 @@ class list using iterator = IteratorBase; using const_iterator = IteratorBase; using value_type = T; + using reference = T&; + using const_reference = const T&; + using difference_type = std::ptrdiff_t; using size_type = decltype(Capacity); + using index_type = size_type; /// @brief constructor for an empty list (of T-types elements) list() noexcept; diff --git a/iceoryx_hoofs/container/include/iox/vector.hpp b/iceoryx_hoofs/container/include/iox/vector.hpp index 30fd55192d..494242ec2d 100644 --- a/iceoryx_hoofs/container/include/iox/vector.hpp +++ b/iceoryx_hoofs/container/include/iox/vector.hpp @@ -24,6 +24,7 @@ #include "iox/uninitialized_array.hpp" #include +#include #include namespace iox @@ -40,7 +41,12 @@ class vector final public: using value_type = T; using iterator = T*; + using reference = T&; using const_iterator = const T*; + using const_reference = const T&; + using difference_type = std::ptrdiff_t; + using size_type = decltype(Capacity); + using index_type = size_type; /// @brief creates an empty vector vector() noexcept = default; diff --git a/iceoryx_hoofs/vocabulary/include/iox/span.hpp b/iceoryx_hoofs/vocabulary/include/iox/span.hpp index a1f86afd46..a041770932 100644 --- a/iceoryx_hoofs/vocabulary/include/iox/span.hpp +++ b/iceoryx_hoofs/vocabulary/include/iox/span.hpp @@ -26,6 +26,7 @@ #include #include +#include #include #include #include @@ -224,6 +225,10 @@ class span final : public detail::span_storage using reference = T&; using iterator = span_iterator; using reverse_iterator = std::reverse_iterator; + using const_iterator = const T*; + using const_reference = const T&; + using size_type = decltype(Extent); + using index_type = size_type; static constexpr uint64_t extent = Extent; // constructors, copy, assignment, and destructor