21 Internet protocol [internet]

21.6 Class ip::address_v6 [internet.address.v6]

21.6.2 ip::address_v6 constructors [internet.address.v6.cons]

constexpr address_v6() noexcept;

Postconditions: is_unspecified() == true and scope_id() == 0.

constexpr address_v6(const bytes_type& bytes, scope_id_type scope = 0);

Remarks: out_of_range if any element of bytes is not in the range [0, 0xFF]. [ Note: For implementations where numeric_limits<unsigned char>::max() == 0xFF, no out-of-range detection is needed.  — end note ]

Postconditions: to_bytes() == bytes and scope_id() == scope.