Linear Wrapper Move Semantics
Linear wrapper template <typename T> class linear_wrapper { public: [[nodiscard]] T&& get() && noexcept { return std::move(value); } ... private: T m_value; };
A photographed presentation slide titled “Linear wrapper” shows a C++ template class whose rvalue-qualified get() method returns its stored value using std::move. The joke is aimed at C++ developers and the complexity of move semantics, presenting a minimal wrapper as if it were a serious design concept.
- @ithueti / 847 2019-04-19
- Type
- image
- Size
- 800×600 · 37.0 KiB
- Mood
- технический юмор
- Language
- en
- Added