absl::is_trivially_relocatable

https://github.com/llvm/llvm-project/pull/127636#pullrequestreview-2637005293 In the current implementation, __builtin_is_cpp_trivially_relocatable will only return true for types that are trivially relocatable according to the standard. Notably, this means that marking a type [[clang::trivial_abi]] aka ABSL_HAVE_ATTRIBUTE_TRIVIAL_ABI will have no effect on this trait.

Synopsis

Declared in <absl/meta/type_traits.h>

template<class T>
struct is_trivially_relocatable
    : std::bool_constant<__builtin_is_cpp_trivially_relocatable(T)>

Base Classes

NameDescription
std::bool_constant<__builtin_is_cpp_trivially_relocatable(T)>