#include #include #include static_assert( C10_IS_TRIVIALLY_COPYABLE(c10::optional), "c10::optional should be trivially copyable"); static_assert( C10_IS_TRIVIALLY_COPYABLE(c10::optional), "c10::optional should be trivially copyable"); static_assert( C10_IS_TRIVIALLY_COPYABLE(c10::optional), "c10::optional should be trivially copyable"); static_assert( sizeof(c10::optional) == sizeof(c10::IntArrayRef), "c10::optional should be size-optimized");