Classes | Public Types | Public Member Functions | Private Attributes | Friends | List of all members
detail::counting_iterator Class Reference

#include <format.h>

Classes

struct  value_type
 

Public Types

using difference_type = std::ptrdiff_t
 
using iterator_category = std::output_iterator_tag
 
using pointer = void
 
using reference = void
 

Public Member Functions

FMT_CONSTEXPR auto count () const -> size_t
 
FMT_CONSTEXPR counting_iterator ()
 
 FMT_UNCHECKED_ITERATOR (counting_iterator)
 
FMT_CONSTEXPR auto operator* () const -> value_type
 
FMT_CONSTEXPR auto operator++ () -> counting_iterator &
 
FMT_CONSTEXPR auto operator++ (int) -> counting_iterator
 

Private Attributes

size_t count_
 

Friends

FMT_CONSTEXPR friend auto operator+ (counting_iterator it, difference_type n) -> counting_iterator
 

Detailed Description

Definition at line 2275 of file format.h.

Member Typedef Documentation

◆ difference_type

Definition at line 2281 of file format.h.

◆ iterator_category

using detail::counting_iterator::iterator_category = std::output_iterator_tag

Definition at line 2280 of file format.h.

◆ pointer

Definition at line 2282 of file format.h.

◆ reference

Definition at line 2283 of file format.h.

Constructor & Destructor Documentation

◆ counting_iterator()

FMT_CONSTEXPR detail::counting_iterator::counting_iterator ( )
inline

Definition at line 2290 of file format.h.

Member Function Documentation

◆ count()

FMT_CONSTEXPR auto detail::counting_iterator::count ( ) const -> size_t
inline

Definition at line 2292 of file format.h.

◆ FMT_UNCHECKED_ITERATOR()

detail::counting_iterator::FMT_UNCHECKED_ITERATOR ( counting_iterator  )

◆ operator*()

FMT_CONSTEXPR auto detail::counting_iterator::operator* ( ) const -> value_type
inline

Definition at line 2310 of file format.h.

◆ operator++() [1/2]

FMT_CONSTEXPR auto detail::counting_iterator::operator++ ( ) -> counting_iterator&
inline

Definition at line 2294 of file format.h.

◆ operator++() [2/2]

FMT_CONSTEXPR auto detail::counting_iterator::operator++ ( int  ) -> counting_iterator
inline

Definition at line 2298 of file format.h.

Friends And Related Function Documentation

◆ operator+

FMT_CONSTEXPR friend auto operator+ ( counting_iterator  it,
difference_type  n 
) -> counting_iterator
friend

Definition at line 2304 of file format.h.

Member Data Documentation

◆ count_

size_t detail::counting_iterator::count_
private

Definition at line 2277 of file format.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:30