|
xapian-core
2.0.0
|
Return the smaller of two numbers which isn't zero. More...
Include dependency graph for min_non_zero.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 > | min_non_zero (const T &a, const T &b) |
| Return the smaller of two unsigned integers which isn't zero. More... | |
Return the smaller of two numbers which isn't zero.
Definition in file min_non_zero.h.
|
constexpr |
Return the smaller of two unsigned integers which isn't zero.
If both a and b are zero, returns zero.
Definition at line 39 of file min_non_zero.h.
References negate_unsigned().
Referenced by Xapian::Weight::Internal::accumulate_stats(), GlassVersion::add_document(), HoneyVersion::add_document(), OrPostList::get_docid(), HoneyVersion::merge_stats(), and Xapian::Weight::Internal::operator+=().