[#CNetAddr-2constructor-00] = xref:CNetAddr.adoc[CNetAddr]::CNetAddr :relfileprefix: ../ :mrdocs: Construct a network address from an IPv6 address and optional scope id. == Synopsis Declared in `<netaddress.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit CNetAddr( in6_addr const& pipv6Addr, uint32_t scope = 0); ---- == Parameters [cols="1,4"] |=== | Name| Description | *pipv6Addr* | The IPv6 address to store. | *scope* | The scope id for scoped/link‐local IPv6 addresses. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#