pytorch/c10/util/in_place.h
Scott Wolchok 44cc873fba [PyTorch] Autoformat c10 (#56830)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/56830

Opt into formatting on GitHub and format everything. This is a trial run before turning on formatting for more and eventually all of the codebase.

Test Plan: CI

Reviewed By: zertosh

Differential Revision: D27979080

fbshipit-source-id: a80f0c48691c08ae8ca0af06377b87e6a2351151
2021-04-30 21:23:28 -07:00

24 lines
350 B
C++

#pragma once
#include <cstddef>
namespace c10 {
struct in_place_t {
explicit in_place_t() = default;
};
template <std::size_t I>
struct in_place_index_t {
explicit in_place_index_t() = default;
};
template <typename T>
struct in_place_type_t {
explicit in_place_type_t() = default;
};
constexpr in_place_t in_place{};
} // namespace c10