summaryrefslogtreecommitdiffstats
path: root/libcxx/include/algorithm
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2018-07-14 04:15:19 +0000
committerMarshall Clow <mclow.lists@gmail.com>2018-07-14 04:15:19 +0000
commitd8098f979906c458406fab4ab0773e350cb294a6 (patch)
tree48c6374e5e6ff2ac8b36c42eb7a8eb2135d0617e /libcxx/include/algorithm
parentc421fe5ef4035169388db0896ed0cfa60e09b98d (diff)
downloadbcm5719-llvm-d8098f979906c458406fab4ab0773e350cb294a6.tar.gz
bcm5719-llvm-d8098f979906c458406fab4ab0773e350cb294a6.zip
Mark __equal_to 's operations as constexpr.
llvm-svn: 337087
Diffstat (limited to 'libcxx/include/algorithm')
-rw-r--r--libcxx/include/algorithm8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm
index b8fa7e77927..90f1d246c63 100644
--- a/libcxx/include/algorithm
+++ b/libcxx/include/algorithm
@@ -671,10 +671,10 @@ _LIBCPP_BEGIN_NAMESPACE_STD
template <class _T1, class _T2 = _T1>
struct __equal_to
{
- _LIBCPP_INLINE_VISIBILITY bool operator()(const _T1& __x, const _T1& __y) const {return __x == __y;}
- _LIBCPP_INLINE_VISIBILITY bool operator()(const _T1& __x, const _T2& __y) const {return __x == __y;}
- _LIBCPP_INLINE_VISIBILITY bool operator()(const _T2& __x, const _T1& __y) const {return __x == __y;}
- _LIBCPP_INLINE_VISIBILITY bool operator()(const _T2& __x, const _T2& __y) const {return __x == __y;}
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11 bool operator()(const _T1& __x, const _T1& __y) const {return __x == __y;}
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11 bool operator()(const _T1& __x, const _T2& __y) const {return __x == __y;}
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11 bool operator()(const _T2& __x, const _T1& __y) const {return __x == __y;}
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11 bool operator()(const _T2& __x, const _T2& __y) const {return __x == __y;}
};
template <class _T1>
OpenPOWER on IntegriCloud