ipaddress 1.1.0
Loading...
Searching...
No Matches
base_v6< Ext > Class Template Reference

A template class providing the base functionality for IPv6 addresses. More...

#include <base-v6.hpp>

Inheritance diagram for base_v6< Ext >:

Public Member Functions

constexpr inline ip_version version () const noexcept
 Retrieves the IP version of the address.
 
constexpr inline size_t size () const noexcept
 Retrieves the size of the IPv6 address.
 

Detailed Description

template<typename Ext>
class ipaddress::base_v6< Ext >

A template class providing the base functionality for IPv6 addresses.

This class encapsulates the basic properties and operations for IPv6 addresses, such as version identification, size, and conversion from string representations. It is intended to be extended by more specialized IPv6 address classes.

Template Parameters
ExtThe extension type that provides additional functionality.

Member Function Documentation

◆ version()

template<typename Ext >
constexpr inline ip_version version ( ) const
inlinenoexcept

Retrieves the IP version of the address.

Returns
The IP version enumeration value for IPv6.

◆ size()

template<typename Ext >
constexpr inline size_t size ( ) const
inlinenoexcept

Retrieves the size of the IPv6 address.

Returns
The size of the IPv6 address in bytes.

The documentation for this class was generated from the following file: