3 ms·You could do it in C++ via proxy objects, but are kind of tricky to get right.by gpderetta 4y agoYou could do it in C++ via proxy objects, but are kind of tricky to get right.account42 4y agoThey are impossible to get right unless you are OK with things breaking when they get passed to templates. This is why std::vector<bool> is considered a mistake.gpderetta 4y agoC++ really needs an 'operator auto' to properly support proxies :(