|
|
@@ -236,8 +236,8 @@ struct basic_meta_associative_container_traits {
|
|
|
*/
|
|
|
static iterator iter(const meta_ctx &area, void *container, const void *as_const, const bool end) {
|
|
|
return (container == nullptr)
|
|
|
- ? iterator{area, std::bool_constant<key_only>{}, end ? static_cast<const Type *>(as_const)->cend() : static_cast<const Type *>(as_const)->cbegin()}
|
|
|
- : iterator{area, std::bool_constant<key_only>{}, end ? static_cast<Type *>(container)->end() : static_cast<Type *>(container)->begin()};
|
|
|
+ ? iterator{area, stl::bool_constant<key_only>{}, end ? static_cast<const Type *>(as_const)->cend() : static_cast<const Type *>(as_const)->cbegin()}
|
|
|
+ : iterator{area, stl::bool_constant<key_only>{}, end ? static_cast<Type *>(container)->end() : static_cast<Type *>(container)->begin()};
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -274,8 +274,8 @@ struct basic_meta_associative_container_traits {
|
|
|
* @return An iterator to the element with the given key, if any.
|
|
|
*/
|
|
|
static iterator find(const meta_ctx &area, void *container, const void *as_const, const void *key) {
|
|
|
- return (container != nullptr) ? iterator{area, std::bool_constant<key_only>{}, static_cast<Type *>(container)->find(*static_cast<const Type::key_type *>(key))}
|
|
|
- : iterator{area, std::bool_constant<key_only>{}, static_cast<const Type *>(as_const)->find(*static_cast<const Type::key_type *>(key))};
|
|
|
+ return (container != nullptr) ? iterator{area, stl::bool_constant<key_only>{}, static_cast<Type *>(container)->find(*static_cast<const Type::key_type *>(key))}
|
|
|
+ : iterator{area, stl::bool_constant<key_only>{}, static_cast<const Type *>(as_const)->find(*static_cast<const Type::key_type *>(key))};
|
|
|
}
|
|
|
};
|
|
|
|