MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / BitRange

Method BitRange

include/util/bit_range.hpp:55–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53template <typename T> struct BitRange
54{
55 explicit BitRange(T v) : value(v) {}
56 BitIterator<T> begin() const { return BitIterator<T>(value); }
57 BitIterator<T> end() const { return BitIterator<T>(0); }
58 std::size_t size() const { return std::popcount(static_cast<std::make_unsigned_t<T>>(value)); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected