27 template <
typename Iterator>
30 return (std::find_if(begin, end, [] (
int x) {
return (0 != x); })
50 template <
typename Iterator>
53 for (Iterator x = begin; x != end; ++x) {
61 #endif // RANGE_UTIL_H
bool isRangeZero(Iterator begin, Iterator end)
Checks if specified range in a container contains only zeros.
Defines the logger used by the top-level component of kea-dhcp-ddns.
void fillRandom(Iterator begin, Iterator end)
Fill in specified range with a random data.
std::vector< uint8_t > random(size_t len)
Generate random value.