diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2014-01-22 22:56:52 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2014-01-22 22:56:52 +0000 |
commit | a5adf489b74dc8cc90340d0c304e30346dcf5cf2 (patch) | |
tree | c5f7497d0dca68ff13341ac32160c49c84abd91f /libcxx/include/__functional_03 | |
parent | 77e4d444113557c62add7919204d81f60c772ce4 (diff) | |
download | bcm5719-llvm-a5adf489b74dc8cc90340d0c304e30346dcf5cf2.tar.gz bcm5719-llvm-a5adf489b74dc8cc90340d0c304e30346dcf5cf2.zip |
Const qualify __mem_fn call operator
QOI improvement.
Differential Revision: http://llvm-reviews.chandlerc.com/D2059
llvm-svn: 199848
Diffstat (limited to 'libcxx/include/__functional_03')
-rw-r--r-- | libcxx/include/__functional_03 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/include/__functional_03 b/libcxx/include/__functional_03 index f9a3d976625..2582601738e 100644 --- a/libcxx/include/__functional_03 +++ b/libcxx/include/__functional_03 @@ -33,28 +33,28 @@ public: // invoke typename __invoke_return<type>::type - operator() () + operator() () const { return __invoke(__f_); } template <class _A0> typename __invoke_return0<type, _A0>::type - operator() (_A0& __a0) + operator() (_A0& __a0) const { return __invoke(__f_, __a0); } template <class _A0, class _A1> typename __invoke_return1<type, _A0, _A1>::type - operator() (_A0& __a0, _A1& __a1) + operator() (_A0& __a0, _A1& __a1) const { return __invoke(__f_, __a0, __a1); } template <class _A0, class _A1, class _A2> typename __invoke_return2<type, _A0, _A1, _A2>::type - operator() (_A0& __a0, _A1& __a1, _A2& __a2) + operator() (_A0& __a0, _A1& __a1, _A2& __a2) const { return __invoke(__f_, __a0, __a1, __a2); } |