Iros
 
Loading...
Searching...
No Matches
has_single_bit.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 -> bool {
10 return popcount(value) == 1;
11 }
12 };
13}
14
16}
17
18namespace di {
20}
Definition bit_proxy_reference.h:5
Definition bit_proxy_reference.h:5
constexpr auto has_single_bit
Definition has_single_bit.h:15
constexpr auto popcount
Definition popcount.h:27
Definition zstring_parser.h:9
Definition has_single_bit.h:7
constexpr auto operator()(T value) const -> bool
Definition has_single_bit.h:9