| 1234567891011121314151617181920 |
- //
- // identity.h
- // stream
- //
- // Created by Sam Jaffe on 3/29/23.
- //
- #pragma once
- #include <utility>
- #include <stream/forward.h>
- namespace stream::detail {
- struct identity {
- template <typename T> decltype(auto) operator()(T && t) const {
- return std::forward<T>(t);
- }
- };
- }
|