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

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

#include <base-v4.hpp>

Inheritance diagram for base_v4< 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 IPv4 address.
 

Detailed Description

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

A template class providing the base functionality for IPv4 addresses.

This class encapsulates the basic properties and operations for IPv4 addresses, such as version identification, size, and conversion from string representations. It is intended to be extended by more specialized IPv4 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 IPv4.

◆ size()

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

Retrieves the size of the IPv4 address.

Returns
The size of the IPv4 address in bytes.

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