From 3abc30a497dc002d45d88c1687a10cff50bda824 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 22 Feb 2013 18:58:26 +0000 Subject: [PATCH] An Optional is pod-like if the inner type is. llvm-svn: 175908 --- llvm/include/llvm/ADT/Optional.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm/include/llvm/ADT/Optional.h b/llvm/include/llvm/ADT/Optional.h index fd1da74..81d73ed 100644 --- a/llvm/include/llvm/ADT/Optional.h +++ b/llvm/include/llvm/ADT/Optional.h @@ -142,6 +142,12 @@ template struct simplify_type > : public simplify_type > {}; +template struct isPodLike; +template struct isPodLike > { + // An Optional is pod-like if T is. + static const bool value = isPodLike::value; +}; + /// \brief Poison comparison between two \c Optional objects. Clients needs to /// explicitly compare the underlying values and account for empty \c Optional /// objects. -- 2.7.4