Caches a pointer to the value referred to by a container_accessor when the value type is a nested container. Otherwise, it's an empty class. More...
Public Member Functions | |
template<typename Container , typename... Indices> | |
element_ref_cache (Container *, Indices const &...) | |
bool | element_pointer_valid (void) const |
T & | element (void) const |
Caches a pointer to the value referred to by a container_accessor when the value type is a nested container. Otherwise, it's an empty class.
Primary template matches case when T
is not a container. One specialization covers case when it is. The class is an optimization to avoid routing all requests to a nested container through the single location in the outer container which stores this element in its container manager. Requests are instead routed to the local representative of the nested p_object, if present, avoiding unnecessary communication.