Commit ab0f3727 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

is_trivially_copyable_v

Summary: [Folly] `is_trivially_copyable_v`, an inline variable helper for `is_trivially_copyable`.

Reviewed By: nbronson

Differential Revision: D18413171

fbshipit-source-id: e256e40351492ecce8cfd31151569544aadca4e1
parent 66f868b7
......@@ -372,6 +372,10 @@ template <class T>
using is_trivially_copyable = std::is_trivially_copyable<T>;
#endif
template <class T>
FOLLY_INLINE_VARIABLE constexpr bool is_trivially_copyable_v =
is_trivially_copyable<T>::value;
/**
* IsRelocatable<T>::value describes the ability of moving around
* memory a value of type T by using memcpy (as opposed to the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment