1 /*<- 2 Copyright (c) 2016 Barrett Adair 3 4 Distributed under the Boost Software License, Version 1.0. 5 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) 6 ->*/ 7 8 //[ is_cv_member 9 #include <type_traits> 10 #include <boost/callable_traits/is_cv_member.hpp> 11 12 namespace ct = boost::callable_traits; 13 14 struct foo; 15 16 static_assert(ct::is_cv_member<int(foo::*)() const volatile>::value, ""); 17 static_assert(!ct::is_cv_member<int(foo::*)()>::value, ""); 18 static_assert(!ct::is_cv_member<int(foo::*)() const>::value, ""); 19 static_assert(!ct::is_cv_member<int(foo::*)() volatile>::value, ""); 20 main()21int main() {} 22 //] 23