microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
net.hpp File Reference

Network address formatting views. More...

#include "../microfmt.hpp"
#include <cstddef>
#include <cstdint>
#include <string_view>
#include <type_traits>
Include dependency graph for net.hpp:

Go to the source code of this file.

Classes

struct  microfmt::detail::is_mac_container< T, typename >
 
struct  microfmt::detail::is_mac_container< T, std::void_t< decltype(std::declval< const T & >().data()), decltype(std::declval< const T & >().size())> >
 
struct  microfmt::mac_view
 
struct  microfmt::formatter< mac_view >
 

Namespaces

namespace  microfmt
 
namespace  microfmt::detail
 

Functions

constexpr mac_view microfmt::mac (span< const uint8_t > bytes, char separator=':', bool uppercase=false) noexcept
 
constexpr mac_view microfmt::mac (const uint8_t(&arr)[6], char separator=':', bool uppercase=false) noexcept
 
constexpr mac_view microfmt::mac (const uint8_t(&arr)[8], char separator=':', bool uppercase=false) noexcept
 
template<typename ContainerT , std::enable_if_t< detail::is_mac_container< ContainerT >::value, int > = 0>
constexpr mac_view microfmt::mac (const ContainerT &c, char separator=':', bool uppercase=false) noexcept
 
template<typename ContainerT , std::enable_if_t<!std::is_lvalue_reference_v< ContainerT > &&detail::is_mac_container< std::remove_reference_t< ContainerT > >::value, int > = 0>
constexpr mac_view microfmt::mac (ContainerT &&, char=':', bool=false) noexcept=delete
 

Detailed Description

Network address formatting views.