| 592 | |
| 593 | template <typename T> |
| 594 | class CountOutputIterator |
| 595 | { |
| 596 | public: |
| 597 | CountOutputIterator() : m_count(0) {} |
| 598 | CountOutputIterator& operator++() |
| 599 | { |
| 600 | ++m_count; |
| 601 | return *this; |
| 602 | } |
| 603 | CountOutputIterator operator++(int) |
| 604 | { |
| 605 | CountOutputIterator org(*this); |
| 606 | ++*this; |
| 607 | return org; |
| 608 | } |
| 609 | CountOutputIterator& operator*() |
| 610 | { |
| 611 | return *this; |
| 612 | } |
| 613 | CountOutputIterator& operator=(T value) |
| 614 | { |
| 615 | return *this; |
| 616 | } |
| 617 | size_t Count() const |
| 618 | { |
| 619 | return m_count; |
| 620 | } |
| 621 | private: |
| 622 | size_t m_count; |
| 623 | }; |
| 624 | |
| 625 | size_t IntegerStringLength(int n) |
| 626 | { |
nothing calls this directly
no outgoing calls
no test coverage detected