Explore Connect Documentation
Snippets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
template<typename T>
class Wrapper
{
public:
    Wrapper(T const& value) : value_(value) {}
    
    T const& get() const { return value_; }
    
private:
    T value_;
};
int main()
{
    using IntWrapper = Wrapper<int>;
    int a = 42;
    IntWrapper intWrapper(a);
    
    intWrapper.get() = 43;
}
Press desired key combination and then press ENTER.