identity.h 215 B

1234567891011121314
  1. //
  2. // identity.h
  3. // stream
  4. //
  5. // Created by Sam Jaffe on 3/29/23.
  6. //
  7. #pragma once
  8. namespace stream::detail {
  9. struct identity {
  10. template <typename T> decltype(auto) operator()(T && t) const { return t; }
  11. };
  12. }