class Poco::Impl::Ptr

Overview

Utility char pointer wrapper class. Moreā€¦

#include <NumericString.h>

class Ptr
{
public:
    // construction

    Ptr(
        char* ptr,
        std::size_t offset
        );

    // methods

    char*&
    operator++();

    char*
    operator++(int);

    char*&
    operator--();

    char*
    operator--(int);

    char*&
    operator+=(int incr);

    char*&
    operator-=(int decr);

    operator char *() const;

    std::size_t
    span() const;
};

Detailed Documentation

Utility char pointer wrapper class.

Class ensures increment/decrement remain within boundaries.