microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
microfmt::raw_range_view< T > Struct Template Reference

#include <pointer.hpp>

Collaboration diagram for microfmt::raw_range_view< T >:
Collaboration graph
[legend]

Public Member Functions

constexpr size_t size () const noexcept
 

Public Attributes

const T * begin_ptr {nullptr}
 
const T * end_ptr {nullptr}
 
microfmt::string_view separator {", "}
 
char open_delim {'['}
 
char close_delim {']'}
 

Detailed Description

template<typename T>
struct microfmt::raw_range_view< T >

Non-owning contiguous range of values addressed by raw pointers.

Member Function Documentation

◆ size()

template<typename T >
constexpr size_t microfmt::raw_range_view< T >::size ( ) const
inlineconstexprnoexcept

Return the number of elements when both pointers refer to the same array (or one-past its end); returns zero for a reversed range.

Member Data Documentation

◆ begin_ptr

template<typename T >
const T* microfmt::raw_range_view< T >::begin_ptr {nullptr}

◆ close_delim

template<typename T >
char microfmt::raw_range_view< T >::close_delim {']'}

◆ end_ptr

template<typename T >
const T* microfmt::raw_range_view< T >::end_ptr {nullptr}

◆ open_delim

template<typename T >
char microfmt::raw_range_view< T >::open_delim {'['}

◆ separator

template<typename T >
microfmt::string_view microfmt::raw_range_view< T >::separator {", "}

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