[automerger skipped] Have vts_ibase_test link all libraries for libinit_test_utils am: ec6f4f46df -s ours
am skip reason: Change-Id Ibdb907d27c201387c9051e90ba96680a840a6d43 with SHA-1 6fc3cc5e3d is in history
Change-Id: Ibd77925238956b32feac91b561a90b5f8057cbe9
diff --git a/base/include/hidl/HidlSupport.h b/base/include/hidl/HidlSupport.h
index 1b91c26..9343f0f 100644
--- a/base/include/hidl/HidlSupport.h
+++ b/base/include/hidl/HidlSupport.h
@@ -1044,6 +1044,9 @@
*/
template <typename T, typename = std::enable_if_t<std::is_enum<T>::value>>
struct hidl_enum_range {
+ // Container-like associated type.
+ using value_type = T;
+
constexpr auto begin() const { return std::begin(details::hidl_enum_values<T>); }
constexpr auto cbegin() const { return begin(); }
constexpr auto rbegin() const { return std::rbegin(details::hidl_enum_values<T>); }