in_place.h 350 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <cstddef>
  3. namespace c10 {
  4. struct in_place_t {
  5. explicit in_place_t() = default;
  6. };
  7. template <std::size_t I>
  8. struct in_place_index_t {
  9. explicit in_place_index_t() = default;
  10. };
  11. template <typename T>
  12. struct in_place_type_t {
  13. explicit in_place_type_t() = default;
  14. };
  15. constexpr in_place_t in_place{};
  16. } // namespace c10