Loading [Contrib]/a11y/accessibility-menu.js
Practice
Compete
Contribute
Learn
Log In
Sign Up
Wrapper<int&> with std::remove_reference_t
joboc
16.8K views
1
2
3
4
5
6
7
8
9
10
#include <iostream>
#include <type_traits>
template<typename T>
class Wrapper
{
public:
Wrapper(T const& value) : value_(value) {}
std::remove_reference_t<T> const& get() const { return value_; }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Run
1
0
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
Suggested playgrounds
Wrapper<int>
By
joboc
16.8K
2
Word Count in Code
By
joboc
2,568
11
Mission Impossible / How to create datatypes which cannot contain invalid state
By
adrianimboden
1,051
2
Computing with Data
By
elgeish
60.7K
20
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants
Keyboard Shortcuts:
?
Show / hide this help menu
×