MCPcopy Create free account
hub / github.com/chen3feng/toft / CountOutputIterator

Class CountOutputIterator

base/string/number.cpp:594–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592
593template <typename T>
594class CountOutputIterator
595{
596public:
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 }
621private:
622 size_t m_count;
623};
624
625size_t IntegerStringLength(int n)
626{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected