xapian-core  2.0.0
Functions
negate_unsigned.h File Reference

Negate unsigned integer, avoiding compiler warnings. More...

#include <type_traits>
+ Include dependency graph for negate_unsigned.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
constexpr std::enable_if_t< std::is_unsigned_v< T >, T > negate_unsigned (T value)
 

Detailed Description

Negate unsigned integer, avoiding compiler warnings.

Definition in file negate_unsigned.h.

Function Documentation

◆ negate_unsigned()

template<typename T >
constexpr std::enable_if_t<std::is_unsigned_v<T>, T> negate_unsigned ( value)
inlineconstexpr