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

Binary integer formatting views and grouping options. More...

#include "../microfmt.hpp"
#include <cstddef>
#include <cstdint>
#include <type_traits>
Include dependency graph for binary.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  microfmt::binary_view< T, typename >
 
struct  microfmt::formatter< binary_view< T > >
 

Namespaces

namespace  microfmt
 

Functions

template<typename T , std::enable_if_t< std::is_integral_v< T > &&!std::is_same_v< T, bool >, int > = 0>
constexpr auto microfmt::bin (T val) noexcept
 
template<uint8_t Bits, typename T , std::enable_if_t< std::is_integral_v< T > &&!std::is_same_v< T, bool >, int > = 0>
constexpr auto microfmt::bin (T val) noexcept
 
template<typename T , std::enable_if_t< std::is_integral_v< T > &&!std::is_same_v< T, bool >, int > = 0>
constexpr auto microfmt::bin_prefixed (T val, bool group_nibbles=false) noexcept
 
template<typename T , std::enable_if_t< std::is_integral_v< T > &&!std::is_same_v< T, bool >, int > = 0>
constexpr auto microfmt::bin_grouped (T val) noexcept
 

Detailed Description

Binary integer formatting views and grouping options.