//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // unary_negate #include #include #include int main() { typedef std::unary_negate > F; const F f = F(std::logical_not()); static_assert((std::is_same::value), "" ); static_assert((std::is_same::value), "" ); assert(f(36)); assert(!f(0)); }