Tatooine
arrow_proxy.h
Go to the documentation of this file.
1#ifndef TATOOINE_ARROW_PROXY_H
2#define TATOOINE_ARROW_PROXY_H
3//==============================================================================
4namespace tatooine {
5//==============================================================================
7template <typename Reference>
8struct arrow_proxy {
9 Reference r;
10 auto operator->() -> Reference * { return &r; }
11};
12//==============================================================================
13} // namespace tatooine
14//==============================================================================
15#endif
Definition: algorithm.h:6
from https://quuxplusone.github.io/blog/2019/02/06/arrow-proxy/
Definition: arrow_proxy.h:8
auto operator->() -> Reference *
Definition: arrow_proxy.h:10
Reference r
Definition: arrow_proxy.h:9