Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards



Determine whether the address is a loopback address.

bool is_loopback() const;

This function tests whether the address is in the address block, which corresponds to the address range -

Return Value

(to_uint() & 0xFF000000) == 0x7F000000.