Iros
 
Loading...
Searching...
No Matches
countr_one.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace di::bit {
6namespace detail {
8 template<concepts::UnsignedInteger T>
9 constexpr auto operator()(T value) const -> int {
10 return countr_zero(T(~value));
11 }
12 };
13}
14
15constexpr inline auto countr_one = detail::CountrOneFunction {};
16}
17
18namespace di {
19using bit::countr_one;
20}
Definition bit_proxy_reference.h:5
Definition bit_proxy_reference.h:5
constexpr auto countr_zero
Definition countr_zero.h:34
constexpr auto countr_one
Definition countr_one.h:15
Definition zstring_parser.h:9
Definition countr_one.h:7
constexpr auto operator()(T value) const -> int
Definition countr_one.h:9