[#CSubNet-2constructor-01] = xref:CSubNet.adoc[CSubNet]::CSubNet :relfileprefix: ../ :mrdocs: Construct from a given network start and mask. == Synopsis Declared in `<netaddress.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- CSubNet( xref:CNetAddr.adoc[CNetAddr] const& addr, xref:CNetAddr.adoc[CNetAddr] const& mask); ---- == Parameters [cols="1,4"] |=== | Name| Description | *addr* [in] | Network start. Must be IPv4 or IPv6, otherwise an invalid subnet is created. | *mask* [in] | Network mask, must be of the same type as `addr` and not contain 0‐bits followed by 1‐bits. Otherwise an invalid subnet is created. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#