Scippy

SoPlex

Sequential object-oriented simPlex

truncating_iterator< OutputIt, std::false_type > Class Template Reference

#include <format.h>

Public Types

using value_type = typename traits::value_type
 
- Public Types inherited from truncating_iterator_base< OutputIt >
using iterator_category = std::output_iterator_tag
 
using difference_type = void
 
using pointer = void
 
using reference = void
 
using _Unchecked_type = truncating_iterator_base
 

Public Member Functions

 truncating_iterator (OutputIt out, std::size_t limit)
 
truncating_iteratoroperator++ ()
 
truncating_iterator operator++ (int)
 
value_typeoperator* () const
 
- Public Member Functions inherited from truncating_iterator_base< OutputIt >
OutputIt base () const
 
std::size_t count () const
 

Private Types

using traits = std::iterator_traits< OutputIt >
 

Private Attributes

traits::value_type blackhole_
 

Additional Inherited Members

- Protected Member Functions inherited from truncating_iterator_base< OutputIt >
 truncating_iterator_base (OutputIt out, std::size_t limit)
 
- Protected Attributes inherited from truncating_iterator_base< OutputIt >
OutputIt out_
 
std::size_t limit_
 
std::size_t count_
 

Detailed Description

template<typename OutputIt>
class internal::truncating_iterator< OutputIt, std::false_type >

Definition at line 400 of file format.h.

Member Typedef Documentation

◆ traits

using traits = std::iterator_traits<OutputIt>
private

Definition at line 402 of file format.h.

◆ value_type

using value_type = typename traits::value_type

Definition at line 407 of file format.h.

Constructor & Destructor Documentation

◆ truncating_iterator()

truncating_iterator ( OutputIt  out,
std::size_t  limit 
)

Definition at line 409 of file format.h.

Member Function Documentation

◆ operator*()

value_type& operator* ( ) const

Definition at line 423 of file format.h.

◆ operator++() [1/2]

truncating_iterator& operator++ ( )

Definition at line 412 of file format.h.

◆ operator++() [2/2]

truncating_iterator operator++ ( int  )

Definition at line 417 of file format.h.

Member Data Documentation

◆ blackhole_

traits::value_type blackhole_
mutableprivate

Definition at line 404 of file format.h.